MCPcopy Create free account
hub / github.com/apache/cloudberry / ExecBitmapHeapEstimate

Function ExecBitmapHeapEstimate

src/backend/executor/nodeBitmapHeapscan.c:949–961  ·  view source on GitHub ↗

---------------------------------------------------------------- * ExecBitmapHeapEstimate * * Compute the amount of space we'll need in the parallel * query DSM, and inform pcxt->estimator about our needs. * ---------------------------------------------------------------- */

Source from the content-addressed store, hash-verified

947 * ----------------------------------------------------------------
948 */
949void
950ExecBitmapHeapEstimate(BitmapHeapScanState *node,
951 ParallelContext *pcxt)
952{
953 EState *estate = node->ss.ps.state;
954
955 node->pscan_len = add_size(offsetof(ParallelBitmapHeapState,
956 phs_snapshot_data),
957 EstimateSnapshotSpace(estate->es_snapshot));
958
959 shm_toc_estimate_chunk(&pcxt->estimator, node->pscan_len);
960 shm_toc_estimate_keys(&pcxt->estimator, 1);
961}
962
963/* ----------------------------------------------------------------
964 * ExecBitmapHeapInitializeDSM

Callers 2

ExecParallelEstimateFunction · 0.85

Calls 2

add_sizeFunction · 0.85
EstimateSnapshotSpaceFunction · 0.85

Tested by

no test coverage detected