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);
24 extern void ExecEndCustomScan(CustomScanState *node);
25 
26 extern void ExecReScanCustomScan(CustomScanState *node);
27 extern void ExecCustomMarkPos(CustomScanState *node);
28 extern void ExecCustomRestrPos(CustomScanState *node);
29 
30 /*
31  * Parallel execution support
32  */
33 extern void ExecCustomScanEstimate(CustomScanState *node,
34  ParallelContext *pcxt);
36  ParallelContext *pcxt);
38  ParallelContext *pcxt);
40  shm_toc *toc);
41 extern void ExecShutdownCustomScan(CustomScanState *node);
42 
43 #endif /* NODECUSTOM_H */
CustomScanState * ExecInitCustomScan(CustomScan *custom_scan, EState *estate, int eflags)
Definition: nodeCustom.c:29
void ExecReScanCustomScan(CustomScanState *node)
Definition: nodeCustom.c:140
void ExecCustomScanInitializeWorker(CustomScanState *node, shm_toc *toc)
Definition: nodeCustom.c:213
void ExecCustomRestrPos(CustomScanState *node)
Definition: nodeCustom.c:158
void ExecEndCustomScan(CustomScanState *node)
Definition: nodeCustom.c:122
void ExecCustomScanInitializeDSM(CustomScanState *node, ParallelContext *pcxt)
Definition: nodeCustom.c:182
void ExecCustomScanEstimate(CustomScanState *node, ParallelContext *pcxt)
Definition: nodeCustom.c:169
void ExecCustomMarkPos(CustomScanState *node)
Definition: nodeCustom.c:147
void ExecCustomScanReInitializeDSM(CustomScanState *node, ParallelContext *pcxt)
Definition: nodeCustom.c:198
void ExecShutdownCustomScan(CustomScanState *node)
Definition: nodeCustom.c:228