]> git.ipfire.org Git - thirdparty/postgresql.git/commit
Fix a small memory leak in ExecReScanAgg() in the hashed aggregation case.
authorNeil Conway <neilc@samurai.com>
Thu, 16 Oct 2008 19:25:58 +0000 (19:25 +0000)
committerNeil Conway <neilc@samurai.com>
Thu, 16 Oct 2008 19:25:58 +0000 (19:25 +0000)
commit6a6f47d00a7505e1b5d562321386253133e05367
treef6b3c349b5b7411245b012c5060c427f27f50cf4
parentb9053b1e6a601a8d3ba3379eae11459dbea5e845
Fix a small memory leak in ExecReScanAgg() in the hashed aggregation case.
In the previous coding, the list of columns that needed to be hashed on
was allocated in the per-query context, but we reallocated every time
the Agg node was rescanned. Since this information doesn't change over
a rescan, just construct the list of columns once during ExecInitAgg().
src/backend/executor/nodeAgg.c