Skip site navigation (1) Skip section navigation (2)

pgsql: Fix a small memory leak in ExecReScanAgg() in the hashed

From: neilc(at)postgresql(dot)org (Neil Conway)
To: pgsql-committers(at)postgresql(dot)org
Subject: pgsql: Fix a small memory leak in ExecReScanAgg() in the hashed
Date: 2008-10-16 19:25:58
Message-ID: 20081016192558.3D2D97545A4@cvs.postgresql.org (view raw or flat)
Thread:
Lists: 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().

Tags:
----
REL8_3_STABLE

Modified Files:
--------------
    pgsql/src/backend/executor:
        nodeAgg.c (r1.156 -> r1.156.2.1)
        (http://anoncvs.postgresql.org/cvsweb.cgi/pgsql/src/backend/executor/nodeAgg.c?r1=1.156&r2=1.156.2.1)

pgsql-committers by date

Next:From: Neil ConwayDate: 2008-10-16 19:26:01
Subject: pgsql: Fix a small memory leak in ExecReScanAgg() in the hashed
Previous:From: Neil ConwayDate: 2008-10-16 19:25:55
Subject: pgsql: Fix a small memory leak in ExecReScanAgg() in the hashed

Privacy Policy | About PostgreSQL
Copyright © 1996-2014 The PostgreSQL Global Development Group