postgresql/src
Peter Eisentraut 52aa334fcd PL/Python: Fix crash in functions returning SETOF and using SPI
Allocate PLyResultObject.tupdesc in TopMemoryContext, because its
lifetime is the lifetime of the Python object and it shouldn't be
freed by some other memory context, such as one controlled by SPI.  We
trust that the Python object will clean up its own memory.

Before, this would crash the included regression test case by trying
to use memory that was already freed.

reported by Asif Naeem, analysis by Tom Lane
2012-05-02 20:59:51 +03:00
..
backend Even more duplicate word removal, in the spirit of the season 2012-05-02 20:56:03 +03:00
bin Tweak psql to print row counts when \x auto chooses non-expanded output. 2012-05-01 16:05:01 -04:00
include Avoid repeated CLOG access from heap_hot_search_buffer. 2012-05-02 12:40:07 -04:00
interfaces Lots of doc corrections. 2012-04-23 22:43:09 -04:00
makefiles Remove dead ports 2012-05-01 22:11:12 +03:00
pl PL/Python: Fix crash in functions returning SETOF and using SPI 2012-05-02 20:59:51 +03:00
port Kill some remaining references to SVR4 and univel. 2012-05-02 00:29:17 -04:00
template Remove dead ports 2012-05-01 22:11:12 +03:00
test Converge all SQL-level statistics timing values to float8 milliseconds. 2012-04-30 14:03:33 -04:00
timezone Fix edge-case behavior of pg_next_dst_boundary(). 2012-04-25 17:26:10 -04:00
tools Add comments suggesting usage of git_changelog to generate release notes. 2012-04-30 11:05:34 -04:00
tutorial Update copyright notices for year 2012. 2012-01-01 18:01:58 -05:00
.gitignore Convert cvsignore to gitignore, and add .gitignore for build targets. 2010-09-22 12:57:04 +02:00
bcc32.mak Remove useless whitespace at end of lines 2010-11-23 22:34:55 +02: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 Fix some oversights in distprep and maintainer-clean targets. 2011-03-10 00:04:05 -05:00
Makefile.global.in Lots of doc corrections. 2012-04-23 22:43:09 -04:00
Makefile.shlib Remove dead ports 2012-05-01 22:11:12 +03:00
nls-global.mk Lots of doc corrections. 2012-04-23 22:43:09 -04:00
win32.mak Remove useless whitespace at end of lines 2010-11-23 22:34:55 +02:00