From dc254c8674c0b179fea0f04128d5d68e2c28ee99 Mon Sep 17 00:00:00 2001 From: Tom Lane Date: Thu, 18 Dec 2003 20:21:53 +0000 Subject: Ensure set-returning functions in the targetlist of a plan node will be shut down cleanly if the plan node is ReScanned before the SRFs are run to completion. This fixes the problem for SQL-language functions, but still need work on functions using the SRF_XXX() macros. --- src/include/executor/executor.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/include') diff --git a/src/include/executor/executor.h b/src/include/executor/executor.h index ad30681f1cd..7403beffd26 100644 --- a/src/include/executor/executor.h +++ b/src/include/executor/executor.h @@ -7,7 +7,7 @@ * Portions Copyright (c) 1996-2003, PostgreSQL Global Development Group * Portions Copyright (c) 1994, Regents of the University of California * - * $Id: executor.h,v 1.102 2003/10/01 21:30:52 tgl Exp $ + * $Id: executor.h,v 1.102.2.1 2003/12/18 20:21:53 tgl Exp $ * *------------------------------------------------------------------------- */ @@ -201,6 +201,7 @@ extern EState *CreateExecutorState(void); extern void FreeExecutorState(EState *estate); extern ExprContext *CreateExprContext(EState *estate); extern void FreeExprContext(ExprContext *econtext); +extern void ReScanExprContext(ExprContext *econtext); #define ResetExprContext(econtext) \ MemoryContextReset((econtext)->ecxt_per_tuple_memory) -- cgit v1.2.3