pgsql: Fix a small memory leak in ExecReScanAgg() in the hashed - Mailing list pgsql-committers

From neilc@postgresql.org (Neil Conway)
Subject pgsql: Fix a small memory leak in ExecReScanAgg() in the hashed
Date
Msg-id 20081016192555.C42067545A4@cvs.postgresql.org
Whole thread Raw
List pgsql-committers
Log Message:
-----------
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().

Modified Files:
--------------
    pgsql/src/backend/executor:
        nodeAgg.c (r1.161 -> r1.162)
        (http://anoncvs.postgresql.org/cvsweb.cgi/pgsql/src/backend/executor/nodeAgg.c?r1=1.161&r2=1.162)

pgsql-committers by date:

Previous
From: diogob@pgfoundry.org (User Diogob)
Date:
Subject: xlogviewer - xlogdump: Patch to work in pg8.3 sent by Shigeru Hanada
Next
From: neilc@postgresql.org (Neil Conway)
Date:
Subject: pgsql: Fix a small memory leak in ExecReScanAgg() in the hashed