* 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. */
| 2611 | * its own. |
| 2612 | */ |
| 2613 | bool |
| 2614 | range_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. |
no test coverage detected