diff options
| author | Tom Lane | 2003-12-18 20:21:37 +0000 |
|---|---|---|
| committer | Tom Lane | 2003-12-18 20:21:37 +0000 |
| commit | 38423232a5c7689bf41a9ab47086fbd6edecfd73 (patch) | |
| tree | 7239519e6a9928fd0d5dba6bc18f1347b1d700ae /src/include | |
| parent | 125d69cd9b2a78a53b9cac811b3f028d6f1ea3d2 (diff) | |
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.
Diffstat (limited to 'src/include')
| -rw-r--r-- | src/include/executor/executor.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/include/executor/executor.h b/src/include/executor/executor.h index 022b759c86..8f1dc7fafa 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 * - * $PostgreSQL: pgsql/src/include/executor/executor.h,v 1.103 2003/11/29 22:41:01 pgsql Exp $ + * $PostgreSQL: pgsql/src/include/executor/executor.h,v 1.104 2003/12/18 20:21:37 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) |
