aboutsummaryrefslogtreecommitdiff
path: root/src/backend/access/gist/gistutil.c
diff options
context:
space:
mode:
authorTom Lane <tgl@sss.pgh.pa.us>2010-11-15 14:27:09 -0500
committerTom Lane <tgl@sss.pgh.pa.us>2010-11-15 14:27:09 -0500
commit6a93cb689a03aaaa04bbc446778de9029efad56d (patch)
treed8c47eb40a7c3f2fbbc2c2f2b0d5b3403b2be892 /src/backend/access/gist/gistutil.c
parentd589e40705df7e2ffa36d4159522062571339022 (diff)
downloadpostgresql-6a93cb689a03aaaa04bbc446778de9029efad56d.tar.gz
postgresql-6a93cb689a03aaaa04bbc446778de9029efad56d.zip
Fix aboriginal mistake in plpython's set-returning-function support.
We must stay in the function's SPI context until done calling the iterator that returns the set result. Otherwise, any attempt to invoke SPI features in the python code called by the iterator will malfunction. Diagnosis and patch by Jan Urbanski, per bug report from Jean-Baptiste Quenot. Back-patch to 8.2; there was no support for SRFs in previous versions of plpython.
Diffstat (limited to 'src/backend/access/gist/gistutil.c')
0 files changed, 0 insertions, 0 deletions