Avoid memory leak if pgstat_vacuum_stat is interrupted partway through. The temporary hash tables made by pgstat_collect_oids should be allocated in a short-term memory context, which is not the default behavior of hash_create.  Noted while looking through hash_create calls in connection with Robert Haas' recent complaint.
Avoid memory leak if pgstat_vacuum_stat is interrupted partway through.
The temporary hash tables made by pgstat_collect_oids should be allocated
in a short-term memory context, which is not the default behavior of
hash_create.  Noted while looking through hash_create calls in connection
with Robert Haas' recent complaint.

This is a pre-existing bug, but it doesn't seem important enough to
back-patch.  The hash table is not so large that it would matter unless this
happened many times within a session, which seems quite unlikely.

yazun/postgres-xl,xinzweb/gpdb,ashwinstar/gpdb,greenplum-db/gpdb,50wu/gpdb,yazun/postgres-xl,zeroae/postgres-xl,kmjungersen/PostgresXL,ashwinstar/gpdb,tpostgres-projects/tPostgres,adam8157/gpdb,tpostgres-projects/tPostgres,ashwinstar/gpdb,jmcatamney/gpdb,snaga/postgres-xl,pavanvd/postgres-xl,pavanvd/postgres-xl,techdragon/Postgres-XL,kmjungersen/PostgresXL,xinzweb/gpdb,postmind-net/postgres-xl,adam8157/gpdb,Postgres-XL/Postgres-XL,Postgres-XL/Postgres-XL,kmjungersen/PostgresXL,kmjungersen/PostgresXL,oberstet/postgres-xl,techdragon/Postgres-XL,lisakowen/gpdb,arcivanov/postgres-xl,zeroae/postgres-xl,greenplum-db/gpdb,lisakowen/gpdb,adam8157/gpdb,jmcatamney/gpdb,ashwinstar/gpdb,adam8157/gpdb,lisakowen/gpdb,ashwinstar/gpdb,greenplum-db/gpdb,xinzweb/gpdb,ashwinstar/gpdb,lisakowen/gpdb,adam8157/gpdb,snaga/postgres-xl,lisakowen/gpdb,lisakowen/gpdb,techdragon/Postgres-XL,oberstet/postgres-xl,Postgres-XL/Postgres-XL,yazun/postgres-xl,oberstet/postgres-xl,oberstet/postgres-xl,jmcatamney/gpdb,snaga/postgres-xl,50wu/gpdb,ovr/postgres-xl,arcivanov/postgres-xl,xinzweb/gpdb,arcivanov/postgres-xl,techdragon/Postgres-XL,greenplum-db/gpdb,greenplum-db/gpdb,pavanvd/postgres-xl,oberstet/postgres-xl,50wu/gpdb,postmind-net/postgres-xl,xinzweb/gpdb,postmind-net/postgres-xl,jmcatamney/gpdb,xinzweb/gpdb,snaga/postgres-xl,adam8157/gpdb,jmcatamney/gpdb,adam8157/gpdb,xinzweb/gpdb,arcivanov/postgres-xl,ovr/postgres-xl,50wu/gpdb,Postgres-XL/Postgres-XL,snaga/postgres-xl,jmcatamney/gpdb,arcivanov/postgres-xl,Postgres-XL/Postgres-XL,yazun/postgres-xl,yazun/postgres-xl,tpostgres-projects/tPostgres,ovr/postgres-xl,postmind-net/postgres-xl,lisakowen/gpdb,greenplum-db/gpdb,arcivanov/postgres-xl,techdragon/Postgres-XL,zeroae/postgres-xl,50wu/gpdb,ovr/postgres-xl,tpostgres-projects/tPostgres,zeroae/postgres-xl,jmcatamney/gpdb,50wu/gpdb,kmjungersen/PostgresXL,ashwinstar/gpdb,ashwinstar/gpdb,lisakowen/gpdb,pavanvd/postgres-xl,zeroae/postgres-xl,postmind-net/postgres-xl,greenplum-db/gpdb,greenplum-db/gpdb,ovr/postgres-xl,xinzweb/gpdb,pavanvd/postgres-xl,50wu/gpdb,tpostgres-projects/tPostgres,50wu/gpdb,adam8157/gpdb,jmcatamney/gpdb