PostgreSQL Source Code  git master
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros
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-2017, 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 #include "nodes/extensible.h"
18 
19 /*
20  * General executor code
21  */
22 extern CustomScanState *ExecInitCustomScan(CustomScan *custom_scan,
23  EState *estate, int eflags);
25 extern void ExecEndCustomScan(CustomScanState *node);
26 
27 extern void ExecReScanCustomScan(CustomScanState *node);
28 extern void ExecCustomMarkPos(CustomScanState *node);
29 extern void ExecCustomRestrPos(CustomScanState *node);
30 
31 /*
32  * Parallel execution support
33  */
34 extern void ExecCustomScanEstimate(CustomScanState *node,
35  ParallelContext *pcxt);
37  ParallelContext *pcxt);
39  shm_toc *toc);
40 extern void ExecShutdownCustomScan(CustomScanState *node);
41 
42 #endif /* NODECUSTOM_H */
CustomScanState * ExecInitCustomScan(CustomScan *custom_scan, EState *estate, int eflags)
Definition: nodeCustom.c:24
TupleTableSlot * ExecCustomScan(CustomScanState *node)
Definition: nodeCustom.c:109
void ExecReScanCustomScan(CustomScanState *node)
Definition: nodeCustom.c:134
void ExecCustomScanInitializeWorker(CustomScanState *node, shm_toc *toc)
Definition: nodeCustom.c:192
void ExecCustomRestrPos(CustomScanState *node)
Definition: nodeCustom.c:152
void ExecEndCustomScan(CustomScanState *node)
Definition: nodeCustom.c:116
void ExecCustomScanInitializeDSM(CustomScanState *node, ParallelContext *pcxt)
Definition: nodeCustom.c:176
void ExecCustomScanEstimate(CustomScanState *node, ParallelContext *pcxt)
Definition: nodeCustom.c:163
void ExecCustomMarkPos(CustomScanState *node)
Definition: nodeCustom.c:141
void ExecShutdownCustomScan(CustomScanState *node)
Definition: nodeCustom.c:207