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

Function ExecSeqScanEstimate

src/backend/executor/nodeSeqscan.c:310–320  ·  view source on GitHub ↗

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

308 * ----------------------------------------------------------------
309 */
310void
311ExecSeqScanEstimate(SeqScanState *node,
312 ParallelContext *pcxt)
313{
314 EState *estate = node->ss.ps.state;
315
316 node->pscan_len = table_parallelscan_estimate(node->ss.ss_currentRelation,
317 estate->es_snapshot);
318 shm_toc_estimate_chunk(&pcxt->estimator, node->pscan_len);
319 shm_toc_estimate_keys(&pcxt->estimator, 1);
320}
321
322/* ----------------------------------------------------------------
323 * ExecSeqScanInitializeDSM

Callers 2

ExecParallelEstimateFunction · 0.85

Calls 1

Tested by

no test coverage detected