aboutsummaryrefslogtreecommitdiff
path: root/src/interfaces/ecpg/ecpglib/misc.c
diff options
context:
space:
mode:
authorTom Lane <tgl@sss.pgh.pa.us>2012-01-04 18:30:55 -0500
committerTom Lane <tgl@sss.pgh.pa.us>2012-01-04 18:30:55 -0500
commitdfd26f9c5f371437f243249025863ea9911aacaa (patch)
treecf06e8240885e678579207f59384f432e61729f0 /src/interfaces/ecpg/ecpglib/misc.c
parent10ecc0d5867b8dd39cf506b8bb02053ede05fb60 (diff)
downloadpostgresql-dfd26f9c5f371437f243249025863ea9911aacaa.tar.gz
postgresql-dfd26f9c5f371437f243249025863ea9911aacaa.zip
Make executor's SELECT INTO code save and restore original tuple receiver.
As previously coded, the QueryDesc's dest pointer was left dangling (pointing at an already-freed receiver object) after ExecutorEnd. It's a bit astonishing that it took us this long to notice, and I'm not sure that the known problem case with SQL functions is the only one. Fix it by saving and restoring the original receiver pointer, which seems the most bulletproof way of ensuring any related bugs are also covered. Per bug #6379 from Paul Ramsey. Back-patch to 8.4 where the current handling of SELECT INTO was introduced.
Diffstat (limited to 'src/interfaces/ecpg/ecpglib/misc.c')
0 files changed, 0 insertions, 0 deletions