From a8bc265bad278a0abe27905d56102184906a18bf Mon Sep 17 00:00:00 2001 From: Tom Lane Date: Tue, 15 May 2001 00:34:02 +0000 Subject: EvalPlanQual was thoroughly broken for concurrent update/delete on inheritance trees (mostly my fault). Repair. Also fix long-standing bug in ExecReplace: after recomputing a concurrently updated tuple, we must recheck constraints. Make EvalPlanQual leak memory with somewhat less enthusiasm than before, although plugging leaks fully will require more changes than I care to risk in a dot-release. --- src/include/nodes/execnodes.h | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'src/include/nodes/execnodes.h') diff --git a/src/include/nodes/execnodes.h b/src/include/nodes/execnodes.h index 2cf9378cf11..c5a30ebe900 100644 --- a/src/include/nodes/execnodes.h +++ b/src/include/nodes/execnodes.h @@ -7,7 +7,7 @@ * Portions Copyright (c) 1996-2001, PostgreSQL Global Development Group * Portions Copyright (c) 1994, Regents of the University of California * - * $Id: execnodes.h,v 1.57 2001/03/22 04:00:50 momjian Exp $ + * $Id: execnodes.h,v 1.57.2.1 2001/05/15 00:34:02 tgl Exp $ * *------------------------------------------------------------------------- */ @@ -353,6 +353,8 @@ typedef struct ResultState * AppendState information * * whichplan which plan is being executed (0 .. n-1) + * firstplan first plan to execute (usually 0) + * lastplan last plan to execute (usually n-1) * nplans how many plans are in the list * initialized array of ExecInitNode() results * ---------------- @@ -361,6 +363,8 @@ typedef struct AppendState { CommonState cstate; /* its first field is NodeTag */ int as_whichplan; + int as_firstplan; + int as_lastplan; int as_nplans; bool *as_initialized; } AppendState; -- cgit v1.2.3