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

Function ExecIndexScanEstimate

src/backend/executor/nodeIndexscan.c:1674–1684  ·  view source on GitHub ↗

---------------------------------------------------------------- * ExecIndexScanEstimate * * 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

1672 * ----------------------------------------------------------------
1673 */
1674void
1675ExecIndexScanEstimate(IndexScanState *node,
1676 ParallelContext *pcxt)
1677{
1678 EState *estate = node->ss.ps.state;
1679
1680 node->iss_PscanLen = index_parallelscan_estimate(node->iss_RelationDesc,
1681 estate->es_snapshot);
1682 shm_toc_estimate_chunk(&pcxt->estimator, node->iss_PscanLen);
1683 shm_toc_estimate_keys(&pcxt->estimator, 1);
1684}
1685
1686/* ----------------------------------------------------------------
1687 * ExecIndexScanInitializeDSM

Callers 2

ExecParallelEstimateFunction · 0.85

Calls 1

Tested by

no test coverage detected