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

Function range_table_walker

src/backend/nodes/nodeFuncs.c:2613–2629  ·  view source on GitHub ↗

* range_table_walker is just the part of query_tree_walker that scans * a query's rangetable. This is split out since it can be useful on * its own. */

Source from the content-addressed store, hash-verified

2611 * its own.
2612 */
2613bool
2614range_table_walker(List *rtable,
2615 bool (*walker) (),
2616 void *context,
2617 int flags)
2618{
2619 ListCell *rt;
2620
2621 foreach(rt, rtable)
2622 {
2623 RangeTblEntry *rte = lfirst_node(RangeTblEntry, rt);
2624
2625 if (range_table_entry_walker(rte, walker, context, flags))
2626 return true;
2627 }
2628 return false;
2629}
2630
2631/*
2632 * Some callers even want to scan the expressions in individual RTEs.

Callers 2

query_tree_walkerFunction · 0.85

Calls 2

range_table_entry_walkerFunction · 0.85
foreachFunction · 0.50

Tested by

no test coverage detected