Fix a small memory leak in ExecReScanAgg() in the hashed aggregation case.
authorNeil Conway <neilc@samurai.com>
Thu, 16 Oct 2008 19:26:01 +0000 (19:26 +0000)
committerNeil Conway <neilc@samurai.com>
Thu, 16 Oct 2008 19:26:01 +0000 (19:26 +0000)
commit741c3b09666873f5741e85494b102682b08e9ba7
tree72943620425e395f72ced7f5903d582d373b76c8
parentb55073de28df0b3f401a4589646bb0489a1ceaf7
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