summaryrefslogtreecommitdiff
path: root/src/include/executor/nodeForeignscan.h
diff options
context:
space:
mode:
authorRobert Haas <rhaas@postgresql.org>2016-02-03 12:46:18 -0500
committerRobert Haas <rhaas@postgresql.org>2016-02-03 12:49:46 -0500
commit69d34408e5e7adcef8ef2f4e9c4f2919637e9a06 (patch)
treebce5efdc1891f9a86505228090b8838fba710833 /src/include/executor/nodeForeignscan.h
parent25e44518c16461d66fb6cec2063035d591db1def (diff)
downloadpostgresql-69d34408e5e7adcef8ef2f4e9c4f2919637e9a06.tar.gz
Allow parallel custom and foreign scans.
This patch doesn't put the new infrastructure to use anywhere, and indeed it's not clear how it could ever be used for something like postgres_fdw which has to send an SQL query and wait for a reply, but there might be FDWs or custom scan providers that are CPU-bound, so let's give them a way to join club parallel. KaiGai Kohei, reviewed by me.
Diffstat (limited to 'src/include/executor/nodeForeignscan.h')
-rw-r--r--src/include/executor/nodeForeignscan.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/include/executor/nodeForeignscan.h b/src/include/executor/nodeForeignscan.h
index a92ce5c22a..c2553295fa 100644
--- a/src/include/executor/nodeForeignscan.h
+++ b/src/include/executor/nodeForeignscan.h
@@ -14,6 +14,7 @@
#ifndef NODEFOREIGNSCAN_H
#define NODEFOREIGNSCAN_H
+#include "access/parallel.h"
#include "nodes/execnodes.h"
extern ForeignScanState *ExecInitForeignScan(ForeignScan *node, EState *estate, int eflags);
@@ -21,4 +22,11 @@ extern TupleTableSlot *ExecForeignScan(ForeignScanState *node);
extern void ExecEndForeignScan(ForeignScanState *node);
extern void ExecReScanForeignScan(ForeignScanState *node);
+extern void ExecForeignScanEstimate(ForeignScanState *node,
+ ParallelContext *pcxt);
+extern void ExecForeignScanInitializeDSM(ForeignScanState *node,
+ ParallelContext *pcxt);
+extern void ExecForeignScanInitializeWorker(ForeignScanState *node,
+ shm_toc *toc);
+
#endif /* NODEFOREIGNSCAN_H */