diff options
author | Tom Lane <tgl@sss.pgh.pa.us> | 2022-07-09 13:35:37 -0400 |
---|---|---|
committer | Tom Lane <tgl@sss.pgh.pa.us> | 2022-07-09 13:35:37 -0400 |
commit | b4f79d278f2a78a65ff020b4e8cfa46a2587091d (patch) | |
tree | e5e595faf17415bccd2778333cf6e56f6eac3581 /src/include/nodes/execnodes.h | |
parent | 2be87f092a2ac786264b2020797aafa837de5a8e (diff) | |
download | postgresql-b4f79d278f2a78a65ff020b4e8cfa46a2587091d.tar.gz postgresql-b4f79d278f2a78a65ff020b4e8cfa46a2587091d.zip |
Mark PlanState as an abstract node type.
In the same vein as commit 251154beb, make it clear that we never
instantiate PlanState.
Also mark MemoryContextData as abstract. This has no effect right now,
since memnodes.h isn't one of the files fed to gen_node_support.pl.
But it seems like good documentation and future-proofing.
Diffstat (limited to 'src/include/nodes/execnodes.h')
-rw-r--r-- | src/include/nodes/execnodes.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/include/nodes/execnodes.h b/src/include/nodes/execnodes.h index 17c42d4a88a..967604b8a50 100644 --- a/src/include/nodes/execnodes.h +++ b/src/include/nodes/execnodes.h @@ -999,6 +999,8 @@ typedef TupleTableSlot *(*ExecProcNodeMtd) (struct PlanState *pstate); */ typedef struct PlanState { + pg_node_attr(abstract) + NodeTag type; Plan *plan; /* associated Plan node */ |