postgresql/src
Tom Lane 3eb2ff16db Fix I/O-conversion-related memory leaks in plpgsql.
Datatype I/O functions are allowed to leak memory in CurrentMemoryContext,
since they are generally called in short-lived contexts.  However, plpgsql
calls such functions for purposes of type conversion, and was calling them
in its procedure context.  Therefore, any leaked memory would not be
recovered until the end of the plpgsql function.  If such a conversion
was done within a loop, quite a bit of memory could get consumed.  Fix by
calling such functions in the transient "eval_econtext", and adjust other
logic to match.  Back-patch to all supported versions.

Andres Freund, Jan Urbański, Tom Lane
2012-02-11 18:06:46 -05:00
..
backend Avoid problems with OID wraparound during WAL replay. 2012-02-06 13:15:04 -05:00
bin Fix brain fade in previous pg_dump patch. 2012-02-10 14:09:42 -05:00
include Use __sync_lock_test_and_set() for spinlocks on ARM, if available. 2012-01-07 15:39:16 -05:00
interfaces Stamp 8.3.17. 2011-12-01 16:55:48 -05:00
makefiles Fix assorted issues with build and install paths containing spaces. 2011-06-14 16:24:45 -04:00
pl Fix I/O-conversion-related memory leaks in plpgsql. 2012-02-11 18:06:46 -05:00
port Stamp 8.3.17. 2011-12-01 16:55:48 -05:00
template Use SYSV semaphores rather than POSIX on Darwin >= 6.0 (i.e., OS X 10.2 2007-09-26 00:32:46 +00:00
test Change FK trigger creation order to better support self-referential FKs. 2011-10-26 13:02:53 -04:00
timezone Update time zone data files to tzdata release 2011n. 2011-11-30 11:49:11 -05:00
tools Backpatch "Use the preferred version of xsubpp." 2011-11-28 07:46:15 -05:00
tutorial Update copyrights in source tree to 2008. 2008-01-01 19:46:01 +00:00
.gitignore Convert cvsignore to gitignore, and add .gitignore for build targets. 2010-09-22 12:57:12 +02:00
bcc32.mak Remove old-style win32 client-only visual c++ build infrastructure for everything except 2007-03-05 14:18:38 +00:00
DEVELOPERS Testing commit stuff 2006-07-10 15:50:02 +00:00
Makefile Tsearch2 functionality migrates to core. The bulk of this work is by 2007-08-21 01:11:32 +00:00
Makefile.global.in Back-patch creation of tar.bz2 tarball during "make dist". 2011-07-03 16:40:34 -04:00
Makefile.shlib Fix assorted issues with build and install paths containing spaces. 2011-06-14 16:24:45 -04:00
nls-global.mk When merging PO files, take into consideration translations in other PO 2006-04-05 13:40:15 +00:00
win32.mak Update supported standalone VC++ version to 7.1+ only, and fix 2007-08-03 10:47:11 +00:00