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

Function ExecForeignScanEstimate

src/backend/executor/nodeForeignscan.c:377–388  ·  view source on GitHub ↗

---------------------------------------------------------------- * ExecForeignScanEstimate * * Informs size of the parallel coordination information, if any * ---------------------------------------------------------------- */

Source from the content-addressed store, hash-verified

375 * ----------------------------------------------------------------
376 */
377void
378ExecForeignScanEstimate(ForeignScanState *node, ParallelContext *pcxt)
379{
380 FdwRoutine *fdwroutine = node->fdwroutine;
381
382 if (fdwroutine->EstimateDSMForeignScan)
383 {
384 node->pscan_len = fdwroutine->EstimateDSMForeignScan(node, pcxt);
385 shm_toc_estimate_chunk(&pcxt->estimator, node->pscan_len);
386 shm_toc_estimate_keys(&pcxt->estimator, 1);
387 }
388}
389
390/* ----------------------------------------------------------------
391 * ExecForeignScanInitializeDSM

Callers 1

ExecParallelEstimateFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected