From ad807ff65d7b22e192dcbb79a0e8c75ff8a4990b Mon Sep 17 00:00:00 2001 From: Tom Lane Date: Mon, 1 Dec 2008 17:06:35 +0000 Subject: 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/include/executor/tstoreReceiver.h | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'src/include/executor') diff --git a/src/include/executor/tstoreReceiver.h b/src/include/executor/tstoreReceiver.h index 092a504c185..047fcc57e50 100644 --- a/src/include/executor/tstoreReceiver.h +++ b/src/include/executor/tstoreReceiver.h @@ -7,7 +7,7 @@ * Portions Copyright (c) 1996-2006, PostgreSQL Global Development Group * Portions Copyright (c) 1994, Regents of the University of California * - * $PostgreSQL: pgsql/src/include/executor/tstoreReceiver.h,v 1.8 2006/03/05 15:58:56 momjian Exp $ + * $PostgreSQL: pgsql/src/include/executor/tstoreReceiver.h,v 1.8.2.1 2008/12/01 17:06:35 tgl Exp $ * *------------------------------------------------------------------------- */ @@ -22,4 +22,7 @@ extern DestReceiver *CreateTuplestoreDestReceiver(Tuplestorestate *tStore, MemoryContext tContext); +extern void SetTuplestoreDestReceiverDeToast(DestReceiver *self, + bool detoast); + #endif /* TSTORE_RECEIVER_H */ -- cgit v1.2.3