PostgreSQL Source Code  git master
nodeCustom.h
Go to the documentation of this file.
1 /* ------------------------------------------------------------------------
2  *
3  * nodeCustom.h
4  *
5  * prototypes for CustomScan nodes
6  *
7  * Portions Copyright (c) 1996-2024, PostgreSQL Global Development Group
8  * Portions Copyright (c) 1994, Regents of the University of California
9  *
10  * ------------------------------------------------------------------------
11  */
12 #ifndef NODECUSTOM_H
13 #define NODECUSTOM_H
14 
15 #include "access/parallel.h"
16 #include "nodes/execnodes.h"
17 
18 /*
19  * General executor code
20  */
22  EState *estate, int eflags);
23 extern void ExecEndCustomScan(CustomScanState *node);
24 
25 extern void ExecReScanCustomScan(CustomScanState *node);
26 extern void ExecCustomMarkPos(CustomScanState *node);
27 extern void ExecCustomRestrPos(CustomScanState *node);
28 
29 /*
30  * Parallel execution support
31  */
32 extern void ExecCustomScanEstimate(CustomScanState *node,
33  ParallelContext *pcxt);
35  ParallelContext *pcxt);
37  ParallelContext *pcxt);
39  ParallelWorkerContext *pwcxt);
40 extern void ExecShutdownCustomScan(CustomScanState *node);
41 
42 #endif /* NODECUSTOM_H */
void ExecCustomScanInitializeDSM(CustomScanState *node, ParallelContext *pcxt)
Definition: nodeCustom.c:174
void ExecShutdownCustomScan(CustomScanState *node)
Definition: nodeCustom.c:221
void ExecCustomScanEstimate(CustomScanState *node, ParallelContext *pcxt)
Definition: nodeCustom.c:161
CustomScanState * ExecInitCustomScan(CustomScan *cscan, EState *estate, int eflags)
Definition: nodeCustom.c:26
void ExecCustomRestrPos(CustomScanState *node)
Definition: nodeCustom.c:150
void ExecReScanCustomScan(CustomScanState *node)
Definition: nodeCustom.c:132
void ExecCustomScanReInitializeDSM(CustomScanState *node, ParallelContext *pcxt)
Definition: nodeCustom.c:190
void ExecEndCustomScan(CustomScanState *node)
Definition: nodeCustom.c:125
void ExecCustomScanInitializeWorker(CustomScanState *node, ParallelWorkerContext *pwcxt)
Definition: nodeCustom.c:205
void ExecCustomMarkPos(CustomScanState *node)
Definition: nodeCustom.c:139