diff options
| author | Tom Lane <tgl@sss.pgh.pa.us> | 2002-12-05 15:50:39 +0000 |
|---|---|---|
| committer | Tom Lane <tgl@sss.pgh.pa.us> | 2002-12-05 15:50:39 +0000 |
| commit | 1fd0c59e25063e664f8a5cee6f723470c5979544 (patch) | |
| tree | d7c1ba5ee25323021a65d0e419299162a9db9c19 /src/include/utils | |
| parent | 0f3b83edfaf65b6105b455f601c11af6e12170ca (diff) | |
| download | postgresql-1fd0c59e25063e664f8a5cee6f723470c5979544.tar.gz | |
Phase 1 of read-only-plans project: cause executor state nodes to point
to plan nodes, not vice-versa. All executor state nodes now inherit from
struct PlanState. Copying of plan trees has been simplified by not
storing a list of SubPlans in Plan nodes (eliminating duplicate links).
The executor still needs such a list, but it can build it during
ExecutorStart since it has to scan the plan tree anyway.
No initdb forced since no stored-on-disk structures changed, but you
will need a full recompile because of node-numbering changes.
Diffstat (limited to 'src/include/utils')
| -rw-r--r-- | src/include/utils/portal.h | 16 |
1 files changed, 4 insertions, 12 deletions
diff --git a/src/include/utils/portal.h b/src/include/utils/portal.h index ba784fee03..40258acc32 100644 --- a/src/include/utils/portal.h +++ b/src/include/utils/portal.h @@ -3,19 +3,16 @@ * portal.h * POSTGRES portal definitions. * + * A portal is an abstraction which represents the execution state of + * a running query (specifically, a CURSOR). * * Portions Copyright (c) 1996-2002, PostgreSQL Global Development Group * Portions Copyright (c) 1994, Regents of the University of California * - * $Id: portal.h,v 1.35 2002/09/04 20:31:45 momjian Exp $ + * $Id: portal.h,v 1.36 2002/12/05 15:50:39 tgl Exp $ * *------------------------------------------------------------------------- */ -/* - * Note: - * A portal is an abstraction which represents the execution state of - * a running query (specifically, a CURSOR). - */ #ifndef PORTAL_H #define PORTAL_H @@ -30,8 +27,6 @@ typedef struct PortalData char *name; /* Portal's name */ MemoryContext heap; /* subsidiary memory */ QueryDesc *queryDesc; /* Info about query associated with portal */ - TupleDesc attinfo; - EState *state; /* Execution state of query */ bool atStart; /* T => fetch backwards is not allowed */ bool atEnd; /* T => fetch forwards is not allowed */ void (*cleanup) (Portal); /* Cleanup routine (optional) */ @@ -47,8 +42,6 @@ typedef struct PortalData * Access macros for Portal ... use these in preference to field access. */ #define PortalGetQueryDesc(portal) ((portal)->queryDesc) -#define PortalGetTupleDesc(portal) ((portal)->attinfo) -#define PortalGetState(portal) ((portal)->state) #define PortalGetHeapMemory(portal) ((portal)->heap) /* @@ -64,7 +57,6 @@ extern Portal CreatePortal(char *name); extern void PortalDrop(Portal portal); extern Portal GetPortalByName(char *name); extern void PortalSetQuery(Portal portal, QueryDesc *queryDesc, - TupleDesc attinfo, EState *state, - void (*cleanup) (Portal portal)); + void (*cleanup) (Portal portal)); #endif /* PORTAL_H */ |
