summaryrefslogtreecommitdiff
path: root/src/include/executor/nodeForeignscan.h
diff options
context:
space:
mode:
authorAndres Freund <andres@anarazel.de>2017-11-16 17:28:11 -0800
committerAndres Freund <andres@anarazel.de>2017-11-16 17:39:18 -0800
commit7082e614c0dd504cdf49c4d5a692159f22e78f9d (patch)
tree21aab7cbd15866af06b423cd90c6b97520b248bc /src/include/executor/nodeForeignscan.h
parent09a777447a858a01ac4d547d678ba295d9542c3b (diff)
downloadpostgresql-7082e614c0dd504cdf49c4d5a692159f22e78f9d.tar.gz
Provide DSM segment to ExecXXXInitializeWorker functions.
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
Diffstat (limited to 'src/include/executor/nodeForeignscan.h')
-rw-r--r--src/include/executor/nodeForeignscan.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/include/executor/nodeForeignscan.h b/src/include/executor/nodeForeignscan.h
index 0354c2c430..152abf022b 100644
--- a/src/include/executor/nodeForeignscan.h
+++ b/src/include/executor/nodeForeignscan.h
@@ -28,7 +28,7 @@ extern void ExecForeignScanInitializeDSM(ForeignScanState *node,
extern void ExecForeignScanReInitializeDSM(ForeignScanState *node,
ParallelContext *pcxt);
extern void ExecForeignScanInitializeWorker(ForeignScanState *node,
- shm_toc *toc);
+ ParallelWorkerContext *pwcxt);
extern void ExecShutdownForeignScan(ForeignScanState *node);
#endif /* NODEFOREIGNSCAN_H */