mirror of
https://github.com/postgres/postgres.git
synced 2026-02-18 01:59:53 -05:00
Previously, executor nodes running in parallel worker processes didn't have access to the dsm_segment object used for parallel execution. In order to support resource management based on DSM segment lifetime, they need that. So create a ParallelWorkerContext object to hold it and pass it to all InitializeWorker functions. Author: Thomas Munro Reviewed-By: Andres Freund Discussion: https://postgr.es/m/CAEepm=2W=cOkiZxcg6qiFQP-dHUe09aqTrEMM7yJDrHMhDv_RA@mail.gmail.com
31 lines
1 KiB
C
31 lines
1 KiB
C
/*-------------------------------------------------------------------------
|
|
*
|
|
* nodeSeqscan.h
|
|
*
|
|
*
|
|
*
|
|
* Portions Copyright (c) 1996-2017, PostgreSQL Global Development Group
|
|
* Portions Copyright (c) 1994, Regents of the University of California
|
|
*
|
|
* src/include/executor/nodeSeqscan.h
|
|
*
|
|
*-------------------------------------------------------------------------
|
|
*/
|
|
#ifndef NODESEQSCAN_H
|
|
#define NODESEQSCAN_H
|
|
|
|
#include "access/parallel.h"
|
|
#include "nodes/execnodes.h"
|
|
|
|
extern SeqScanState *ExecInitSeqScan(SeqScan *node, EState *estate, int eflags);
|
|
extern void ExecEndSeqScan(SeqScanState *node);
|
|
extern void ExecReScanSeqScan(SeqScanState *node);
|
|
|
|
/* parallel scan support */
|
|
extern void ExecSeqScanEstimate(SeqScanState *node, ParallelContext *pcxt);
|
|
extern void ExecSeqScanInitializeDSM(SeqScanState *node, ParallelContext *pcxt);
|
|
extern void ExecSeqScanReInitializeDSM(SeqScanState *node, ParallelContext *pcxt);
|
|
extern void ExecSeqScanInitializeWorker(SeqScanState *node,
|
|
ParallelWorkerContext *pwcxt);
|
|
|
|
#endif /* NODESEQSCAN_H */
|