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

Function planstate_walk_subplans

src/backend/nodes/nodeFuncs.c:4395–4411  ·  view source on GitHub ↗

* Walk a list of SubPlans (or initPlans, which also use SubPlan nodes). */

Source from the content-addressed store, hash-verified

4393 * Walk a list of SubPlans (or initPlans, which also use SubPlan nodes).
4394 */
4395static bool
4396planstate_walk_subplans(List *plans,
4397 bool (*walker) (),
4398 void *context)
4399{
4400 ListCell *lc;
4401
4402 foreach(lc, plans)
4403 {
4404 SubPlanState *sps = lfirst_node(SubPlanState, lc);
4405
4406 if (walker(sps->planstate, context))
4407 return true;
4408 }
4409
4410 return false;
4411}
4412
4413/*
4414 * Walk the constituent plans of a ModifyTable, Append, MergeAppend,

Callers 1

planstate_tree_walkerFunction · 0.85

Calls 1

foreachFunction · 0.50

Tested by

no test coverage detected