From b27de223da1f64a23cf7934b78757b5fa073fbc4 Mon Sep 17 00:00:00 2001 From: Tom Lane Date: Mon, 1 Dec 2008 17:06:41 +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 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 */ -- cgit v1.2.3