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

Function ExecIndexOnlyScanEstimate

src/backend/executor/nodeIndexonlyscan.c:653–663  ·  view source on GitHub ↗

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

651 * ----------------------------------------------------------------
652 */
653void
654ExecIndexOnlyScanEstimate(IndexOnlyScanState *node,
655 ParallelContext *pcxt)
656{
657 EState *estate = node->ss.ps.state;
658
659 node->ioss_PscanLen = index_parallelscan_estimate(node->ioss_RelationDesc,
660 estate->es_snapshot);
661 shm_toc_estimate_chunk(&pcxt->estimator, node->ioss_PscanLen);
662 shm_toc_estimate_keys(&pcxt->estimator, 1);
663}
664
665/* ----------------------------------------------------------------
666 * ExecIndexOnlyScanInitializeDSM

Callers 2

ExecParallelEstimateFunction · 0.85

Calls 1

Tested by

no test coverage detected