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

Function UpdateChangedParamSet

src/backend/executor/execUtils.c:921–940  ·  view source on GitHub ↗

* UpdateChangedParamSet * Add changed parameters to a plan node's chgParam set */

Source from the content-addressed store, hash-verified

919 * Add changed parameters to a plan node's chgParam set
920 */
921void
922UpdateChangedParamSet(PlanState *node, Bitmapset *newchg)
923{
924 Bitmapset *parmset;
925
926 /*
927 * The plan node only depends on params listed in its allParam set. Don't
928 * include anything else into its chgParam set.
929 */
930 parmset = bms_intersect(node->plan->allParam, newchg);
931
932 /*
933 * Keep node->chgParam == NULL if there's not actually any members; this
934 * allows the simplest possible tests in executor node files.
935 */
936 if (!bms_is_empty(parmset))
937 node->chgParam = bms_join(node->chgParam, parmset);
938 else
939 bms_free(parmset);
940}
941
942/*
943 * executor_errposition

Callers 7

ExecReScanFunction · 0.85
ExecReScanBitmapOrFunction · 0.85
ExecReScanSubqueryScanFunction · 0.85
ExecReScanMergeAppendFunction · 0.85
ExecReScanAppendFunction · 0.85
ExecReScanSequenceFunction · 0.85
ExecReScanBitmapAndFunction · 0.85

Calls 4

bms_intersectFunction · 0.85
bms_is_emptyFunction · 0.85
bms_joinFunction · 0.85
bms_freeFunction · 0.85

Tested by

no test coverage detected