From c7ff7663e47fc4e295700101912f2b7dd53c1f4b Mon Sep 17 00:00:00 2001 From: Tom Lane Date: Tue, 27 Feb 2007 01:11:26 +0000 Subject: Get rid of the separate EState for subplans, and just let them share the parent query's EState. Now that there's a single flat rangetable for both the main plan and subplans, there's no need anymore for a separate EState, and removing it allows cleaning up some crufty code in nodeSubplan.c and nodeSubqueryscan.c. Should be a tad faster too, although any difference will probably be hard to measure. This is the last bit of subsidiary mop-up work from changing to a flat rangetable. --- src/include/nodes/relation.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'src/include/nodes/relation.h') diff --git a/src/include/nodes/relation.h b/src/include/nodes/relation.h index 19bcb51ea08..5617c151594 100644 --- a/src/include/nodes/relation.h +++ b/src/include/nodes/relation.h @@ -7,7 +7,7 @@ * Portions Copyright (c) 1996-2007, PostgreSQL Global Development Group * Portions Copyright (c) 1994, Regents of the University of California * - * $PostgreSQL: pgsql/src/include/nodes/relation.h,v 1.138 2007/02/22 22:00:26 tgl Exp $ + * $PostgreSQL: pgsql/src/include/nodes/relation.h,v 1.139 2007/02/27 01:11:26 tgl Exp $ * *------------------------------------------------------------------------- */ @@ -68,6 +68,8 @@ typedef struct PlannerGlobal List *subrtables; /* Rangetables for SubPlan nodes */ + Bitmapset *rewindPlanIDs; /* indices of subplans that require REWIND */ + List *finalrtable; /* "flat" rangetable for executor */ } PlannerGlobal; -- cgit v1.2.3