postgresql/src
Tom Lane a2c2bbcd28 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:40 -05:00
..
backend Avoid problems with OID wraparound during WAL replay. 2012-02-06 13:14:58 -05:00
bin Fix brain fade in previous pg_dump patch. 2012-02-10 14:09:37 -05:00
include Use __sync_lock_test_and_set() for spinlocks on ARM, if available. 2012-01-07 15:39:11 -05:00
interfaces In ecpg removed old leftover check for given connection name. 2011-12-18 18:46:23 +01:00
makefiles Fix assorted issues with build and install paths containing spaces. 2011-06-14 16:03:20 -04:00
pl Fix I/O-conversion-related memory leaks in plpgsql. 2012-02-11 18:06:40 -05:00
port Stamp 8.4.10. 2011-12-01 16:53:13 -05:00
template Tweak configure to attempt to add -qnoansialias to CFLAGS whenever running 2009-02-11 20:02:40 +00:00
test Make executor's SELECT INTO code save and restore original tuple receiver. 2012-01-04 18:31:14 -05:00
timezone Update time zone data files to tzdata release 2011n. 2011-11-30 11:48:53 -05:00
tools Backpatch "Use the preferred version of xsubpp." 2011-11-28 07:45:48 -05:00
tutorial Remove copyright mention of Andrew Yu, per author's permission. 2010-02-02 18:52:06 +00:00
.gitignore Convert cvsignore to gitignore, and add .gitignore for build targets. 2010-09-22 12:57:08 +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 Replace a couple of references to files that no longer exist in the source 2009-05-04 08:08:47 +00:00
Makefile Add the possibility to specify an explicit validator function for foreign-data 2009-02-24 10:06:36 +00:00
Makefile.global.in Back-patch creation of tar.bz2 tarball during "make dist". 2011-07-03 16:40:28 -04:00
Makefile.shlib Fix assorted issues with build and install paths containing spaces. 2011-06-14 16:03:20 -04:00
nls-global.mk Do not msgmerge against /dev/null; merge against the pot file itself 2009-01-20 09:58:50 +00:00
win32.mak Update supported standalone VC++ version to 7.1+ only, and fix 2007-08-03 10:47:11 +00:00