diff options
author | Tom Lane <tgl@sss.pgh.pa.us> | 2009-12-27 19:40:07 +0000 |
---|---|---|
committer | Tom Lane <tgl@sss.pgh.pa.us> | 2009-12-27 19:40:07 +0000 |
commit | 0b392314315a55aa201f53b2ba71986be91ebc69 (patch) | |
tree | 051d65b9a0413baa8e4af46355c3e419fa786f6e /src/backend/executor/nodeModifyTable.c | |
parent | d4d1885e42ecc7d61c045f6d53b8fef4454083a9 (diff) | |
download | postgresql-0b392314315a55aa201f53b2ba71986be91ebc69.tar.gz postgresql-0b392314315a55aa201f53b2ba71986be91ebc69.zip |
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.
Diffstat (limited to 'src/backend/executor/nodeModifyTable.c')
0 files changed, 0 insertions, 0 deletions