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

Function ExecAppendInitializeWorker

src/backend/executor/nodeAppend.c:558–563  ·  view source on GitHub ↗

---------------------------------------------------------------- * ExecAppendInitializeWorker * * Copy relevant information from TOC into planstate, and initialize * whatever is required to choose and execute the optimal subplan. * ---------------------------------------------------------------- */

Source from the content-addressed store, hash-verified

556 * ----------------------------------------------------------------
557 */
558void
559ExecAppendInitializeWorker(AppendState *node, ParallelWorkerContext *pwcxt)
560{
561 node->as_pstate = shm_toc_lookup(pwcxt->toc, node->ps.plan->plan_node_id, false);
562 node->choose_next_subplan = choose_next_subplan_for_worker;
563}
564
565/* ----------------------------------------------------------------
566 * choose_next_subplan_locally

Callers 2

Calls 1

shm_toc_lookupFunction · 0.85

Tested by

no test coverage detected