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

Function ExecAppendEstimate

src/backend/executor/nodeAppend.c:501–511  ·  view source on GitHub ↗

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

499 * ----------------------------------------------------------------
500 */
501void
502ExecAppendEstimate(AppendState *node,
503 ParallelContext *pcxt)
504{
505 node->pstate_len =
506 add_size(offsetof(ParallelAppendState, pa_finished),
507 sizeof(bool) * node->as_nplans);
508
509 shm_toc_estimate_chunk(&pcxt->estimator, node->pstate_len);
510 shm_toc_estimate_keys(&pcxt->estimator, 1);
511}
512
513
514/* ----------------------------------------------------------------

Callers 2

ExecParallelEstimateFunction · 0.85

Calls 1

add_sizeFunction · 0.85

Tested by

no test coverage detected