mirror of
https://github.com/postgres/postgres.git
synced 2026-05-30 04:24:45 -04:00
7082e614c0
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
33 lines
1.2 KiB
C
33 lines
1.2 KiB
C
/*-------------------------------------------------------------------------
|
|
*
|
|
* nodeBitmapHeapscan.h
|
|
*
|
|
*
|
|
*
|
|
* Portions Copyright (c) 1996-2017, PostgreSQL Global Development Group
|
|
* Portions Copyright (c) 1994, Regents of the University of California
|
|
*
|
|
* src/include/executor/nodeBitmapHeapscan.h
|
|
*
|
|
*-------------------------------------------------------------------------
|
|
*/
|
|
#ifndef NODEBITMAPHEAPSCAN_H
|
|
#define NODEBITMAPHEAPSCAN_H
|
|
|
|
#include "nodes/execnodes.h"
|
|
#include "access/parallel.h"
|
|
|
|
extern BitmapHeapScanState *ExecInitBitmapHeapScan(BitmapHeapScan *node, EState *estate, int eflags);
|
|
extern void ExecEndBitmapHeapScan(BitmapHeapScanState *node);
|
|
extern void ExecReScanBitmapHeapScan(BitmapHeapScanState *node);
|
|
extern void ExecBitmapHeapEstimate(BitmapHeapScanState *node,
|
|
ParallelContext *pcxt);
|
|
extern void ExecBitmapHeapInitializeDSM(BitmapHeapScanState *node,
|
|
ParallelContext *pcxt);
|
|
extern void ExecBitmapHeapReInitializeDSM(BitmapHeapScanState *node,
|
|
ParallelContext *pcxt);
|
|
extern void ExecBitmapHeapInitializeWorker(BitmapHeapScanState *node,
|
|
ParallelWorkerContext *pwcxt);
|
|
|
|
#endif /* NODEBITMAPHEAPSCAN_H */
|