mirror of
https://git.postgresql.org/git/postgresql.git
synced 2026-02-07 16:37:29 +08:00
This is expected to be useful mostly when performing such scans in parallel, because in that case it allows (in combination with commit acf555bc53acb589b5a2827e65d655fa8c9adee0) nodes below a Gather to get control just before the DSM segment goes away. KaiGai Kohei, except that I rewrote the documentation. Reviewed by Claudio Freire. Discussion: http://postgr.es/m/CADyhKSXJK0jUJ8rWv4AmKDhsUh124_rEn39eqgfC5D8fu6xVuw@mail.gmail.com
34 lines
1.1 KiB
C
34 lines
1.1 KiB
C
/*-------------------------------------------------------------------------
|
|
*
|
|
* nodeForeignscan.h
|
|
*
|
|
*
|
|
*
|
|
* Portions Copyright (c) 1996-2017, 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);
|
|
extern void ExecShutdownForeignScan(ForeignScanState *node);
|
|
|
|
#endif /* NODEFOREIGNSCAN_H */
|