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-2019, 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 ExecReScanCustomScan(CustomScanState *node)
Definition: nodeCustom.c:133
void ExecCustomRestrPos(CustomScanState *node)
Definition: nodeCustom.c:151
void ExecEndCustomScan(CustomScanState *node)
Definition: nodeCustom.c:119
void ExecCustomScanInitializeDSM(CustomScanState *node, ParallelContext *pcxt)
Definition: nodeCustom.c:175
void ExecCustomScanEstimate(CustomScanState *node, ParallelContext *pcxt)
Definition: nodeCustom.c:162
void ExecCustomMarkPos(CustomScanState *node)
Definition: nodeCustom.c:140
CustomScanState * ExecInitCustomScan(CustomScan *cscan, EState *estate, int eflags)
Definition: nodeCustom.c:29
void ExecCustomScanReInitializeDSM(CustomScanState *node, ParallelContext *pcxt)
Definition: nodeCustom.c:191
void ExecShutdownCustomScan(CustomScanState *node)
Definition: nodeCustom.c:222
void ExecCustomScanInitializeWorker(CustomScanState *node, ParallelWorkerContext *pwcxt)
Definition: nodeCustom.c:206