summaryrefslogtreecommitdiff
path: root/src/include/executor
diff options
context:
space:
mode:
authorTom Lane <tgl@sss.pgh.pa.us>2008-12-01 17:06:41 +0000
committerTom Lane <tgl@sss.pgh.pa.us>2008-12-01 17:06:41 +0000
commitb27de223da1f64a23cf7934b78757b5fa073fbc4 (patch)
tree1335fa42b1caba2c70496c00193ca585c92d2f4c /src/include/executor
parentd7d81aa81342887ea94c88c7b8b464f863781397 (diff)
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.
Diffstat (limited to 'src/include/executor')
-rw-r--r--src/include/executor/tstoreReceiver.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/include/executor/tstoreReceiver.h b/src/include/executor/tstoreReceiver.h
index 51be739ff16..fbef6dd3295 100644
--- a/src/include/executor/tstoreReceiver.h
+++ b/src/include/executor/tstoreReceiver.h
@@ -7,7 +7,7 @@
* Portions Copyright (c) 1996-2005, PostgreSQL Global Development Group
* Portions Copyright (c) 1994, Regents of the University of California
*
- * $PostgreSQL: pgsql/src/include/executor/tstoreReceiver.h,v 1.7 2004/12/31 22:03:29 pgsql Exp $
+ * $PostgreSQL: pgsql/src/include/executor/tstoreReceiver.h,v 1.7.6.1 2008/12/01 17:06:41 tgl Exp $
*
*-------------------------------------------------------------------------
*/
@@ -22,4 +22,7 @@
extern DestReceiver *CreateTuplestoreDestReceiver(Tuplestorestate *tStore,
MemoryContext tContext);
+extern void SetTuplestoreDestReceiverDeToast(DestReceiver *self,
+ bool detoast);
+
#endif /* TSTORE_RECEIVER_H */