aboutsummaryrefslogtreecommitdiff
path: root/src/backend/access/gist/gistproc.c
diff options
context:
space:
mode:
authorTom Lane <tgl@sss.pgh.pa.us>2012-06-21 17:26:19 -0400
committerTom Lane <tgl@sss.pgh.pa.us>2012-06-21 17:26:19 -0400
commitdf83f0f61c5e44602fa879626c79751b198237c5 (patch)
tree833554eb1b54856660bf2a48f5b74c1bccc541ab /src/backend/access/gist/gistproc.c
parent348f5043173260d438735e3a9e4a8ef1bd099686 (diff)
downloadpostgresql-df83f0f61c5e44602fa879626c79751b198237c5.tar.gz
postgresql-df83f0f61c5e44602fa879626c79751b198237c5.zip
Fix memory leak in ARRAY(SELECT ...) subqueries.
Repeated execution of an uncorrelated ARRAY_SUBLINK sub-select (which I think can only happen if the sub-select is embedded in a larger, correlated subquery) would leak memory for the duration of the query, due to not reclaiming the array generated in the previous execution. Per bug #6698 from Armando Miraglia. Diagnosis and fix idea by Heikki, patch itself by me. This has been like this all along, so back-patch to all supported versions.
Diffstat (limited to 'src/backend/access/gist/gistproc.c')
0 files changed, 0 insertions, 0 deletions