summaryrefslogtreecommitdiff
path: root/src/include/nodes/execnodes.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/include/nodes/execnodes.h')
-rw-r--r--src/include/nodes/execnodes.h35
1 files changed, 2 insertions, 33 deletions
diff --git a/src/include/nodes/execnodes.h b/src/include/nodes/execnodes.h
index 0113e5c663c..bf2a09bc39c 100644
--- a/src/include/nodes/execnodes.h
+++ b/src/include/nodes/execnodes.h
@@ -1606,38 +1606,7 @@ typedef struct ForeignScanState
* the BeginCustomScan method.
* ----------------
*/
-struct ParallelContext; /* avoid including parallel.h here */
-struct shm_toc; /* avoid including shm_toc.h here */
-struct ExplainState; /* avoid including explain.h here */
-struct CustomScanState;
-
-typedef struct CustomExecMethods
-{
- const char *CustomName;
-
- /* Executor methods: mark/restore are optional, the rest are required */
- void (*BeginCustomScan) (struct CustomScanState *node,
- EState *estate,
- int eflags);
- TupleTableSlot *(*ExecCustomScan) (struct CustomScanState *node);
- void (*EndCustomScan) (struct CustomScanState *node);
- void (*ReScanCustomScan) (struct CustomScanState *node);
- void (*MarkPosCustomScan) (struct CustomScanState *node);
- void (*RestrPosCustomScan) (struct CustomScanState *node);
- /* Optional: parallel execution support */
- Size (*EstimateDSMCustomScan) (struct CustomScanState *node,
- struct ParallelContext *pcxt);
- void (*InitializeDSMCustomScan) (struct CustomScanState *node,
- struct ParallelContext *pcxt,
- void *coordinate);
- void (*InitializeWorkerCustomScan) (struct CustomScanState *node,
- struct shm_toc *toc,
- void *coordinate);
- /* Optional: print additional information in EXPLAIN */
- void (*ExplainCustomScan) (struct CustomScanState *node,
- List *ancestors,
- struct ExplainState *es);
-} CustomExecMethods;
+struct CustomExecMethods;
typedef struct CustomScanState
{
@@ -1645,7 +1614,7 @@ typedef struct CustomScanState
uint32 flags; /* mask of CUSTOMPATH_* flags, see relation.h */
List *custom_ps; /* list of child PlanState nodes, if any */
Size pscan_len; /* size of parallel coordination information */
- const CustomExecMethods *methods;
+ const struct CustomExecMethods *methods;
} CustomScanState;
/* ----------------------------------------------------------------