Allow parallel custom and foreign scans.
authorRobert Haas <rhaas@postgresql.org>
Wed, 3 Feb 2016 17:46:18 +0000 (12:46 -0500)
committerRobert Haas <rhaas@postgresql.org>
Wed, 3 Feb 2016 17:49:46 +0000 (12:49 -0500)
commit69d34408e5e7adcef8ef2f4e9c4f2919637e9a06
treebce5efdc1891f9a86505228090b8838fba710833
parent25e44518c16461d66fb6cec2063035d591db1def
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.
doc/src/sgml/custom-scan.sgml
doc/src/sgml/fdwhandler.sgml
src/backend/executor/execParallel.c
src/backend/executor/nodeCustom.c
src/backend/executor/nodeForeignscan.c
src/include/executor/nodeCustom.h
src/include/executor/nodeForeignscan.h
src/include/foreign/fdwapi.h
src/include/nodes/execnodes.h