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)
commit25e4d923e1d19981aaca3106885b56ddb4e330f8
tree8206a8cec50ea7806c4b229a274e6c5157ca9d3f
parent98155667c374ea02aee2369d31f9d3c27a7aaa77
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