Ensure that the contents of a holdable cursor don't depend on out-of-line
authorTom Lane <tgl@sss.pgh.pa.us>
Mon, 1 Dec 2008 17:06:41 +0000 (17:06 +0000)
committerTom Lane <tgl@sss.pgh.pa.us>
Mon, 1 Dec 2008 17:06:41 +0000 (17:06 +0000)
commit88a92c5fc4b75fdf54bbd1d358d7ea61383a6e5c
treed82ca735b8d679e374b4a1180d3d3b017af90204
parentfd94155f00f5a0dbc1446cc9d25d4b08da462d12
Ensure that the contents of a holdable cursor don't depend on out-of-line
toasted values, since those could get dropped once the cursor's transaction
is over.  Per bug #4553 from Andrew Gierth.

Back-patch as far as 8.1.  The bug actually exists back to 7.4 when holdable
cursors were introduced, but this patch won't work before 8.1 without
significant adjustments.  Given the lack of field complaints, it doesn't seem
worth the work (and risk of introducing new bugs) to try to make a patch for
the older branches.
src/backend/commands/portalcmds.c
src/backend/executor/tstoreReceiver.c
src/backend/tcop/pquery.c
src/include/executor/tstoreReceiver.h