mirror of
https://git.postgresql.org/git/postgresql.git
synced 2026-02-07 12:17:34 +08:00
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.
33 lines
1.1 KiB
C
33 lines
1.1 KiB
C
/*-------------------------------------------------------------------------
|
|
*
|
|
* nodeForeignscan.h
|
|
*
|
|
*
|
|
*
|
|
* Portions Copyright (c) 1996-2016, PostgreSQL Global Development Group
|
|
* Portions Copyright (c) 1994, Regents of the University of California
|
|
*
|
|
* src/include/executor/nodeForeignscan.h
|
|
*
|
|
*-------------------------------------------------------------------------
|
|
*/
|
|
#ifndef NODEFOREIGNSCAN_H
|
|
#define NODEFOREIGNSCAN_H
|
|
|
|
#include "access/parallel.h"
|
|
#include "nodes/execnodes.h"
|
|
|
|
extern ForeignScanState *ExecInitForeignScan(ForeignScan *node, EState *estate, int eflags);
|
|
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 */
|