postgresql/src/backend
Tom Lane d14241c2cf 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.
2012-06-21 17:27:19 -04:00
..
access Improve reporting of permission errors for array types 2012-06-15 22:55:03 +03:00
bootstrap Remove misplaced sanity check from heap_create(). 2012-06-14 09:58:53 -04:00
catalog Refer to the default foreign key match style as MATCH SIMPLE internally. 2012-06-17 20:16:44 -04:00
commands Repair comment mangled by a pgindent run long ago 2012-06-21 15:37:05 -04:00
executor Fix memory leak in ARRAY(SELECT ...) subqueries. 2012-06-21 17:27:19 -04:00
foreign Add GetForeignColumnOptions() to foreign.c, and add some documentation. 2012-03-07 18:20:58 -05:00
lib Update copyright notices for year 2012. 2012-01-01 18:01:58 -05:00
libpq Run pgindent on 9.2 source tree in preparation for first 9.3 2012-06-10 15:20:04 -04:00
main Make documentation of --help and --version options more consistent 2012-06-18 02:46:59 +03:00
nodes Run pgindent on 9.2 source tree in preparation for first 9.3 2012-06-10 15:20:04 -04:00
optimizer Run pgindent on 9.2 source tree in preparation for first 9.3 2012-06-10 15:20:04 -04:00
parser Refer to the default foreign key match style as MATCH SIMPLE internally. 2012-06-17 20:16:44 -04:00
po Translation updates 2011-08-17 14:07:46 +03:00
port Run pgindent on 9.2 source tree in preparation for first 9.3 2012-06-10 15:20:04 -04:00
postmaster Fix stats collector to recover nicely when system clock goes backwards. 2012-06-17 17:11:49 -04:00
regex Run pgindent on 9.2 source tree in preparation for first 9.3 2012-06-10 15:20:04 -04:00
replication Prevent non-streaming replication connections from being selected sync slave 2012-06-11 15:17:38 +02:00
rewrite Run pgindent on 9.2 source tree in preparation for first 9.3 2012-06-10 15:20:04 -04:00
snowball Update copyright notices for year 2012. 2012-01-01 18:01:58 -05:00
storage Add a small cache of locks owned by a resource owner in ResourceOwner. 2012-06-21 15:30:26 +03:00
tcop Run pgindent on 9.2 source tree in preparation for first 9.3 2012-06-10 15:20:04 -04:00
tsearch Run pgindent on 9.2 source tree in preparation for first 9.3 2012-06-10 15:20:04 -04:00
utils Add a small cache of locks owned by a resource owner in ResourceOwner. 2012-06-21 15:30:26 +03:00
.gitignore Add gitignore for mingw/cygwin build outputs 2011-06-09 18:11:47 +02:00
Makefile Fix incorrect make maintainer-clean rule. 2012-04-07 18:16:50 -04:00
common.mk Call check_keywords.pl in maintainer-check 2012-02-27 13:53:12 +02:00
nls.mk Sort file list when creating gettext-files 2011-12-27 20:20:56 +02:00