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

Function pull_varnos

src/backend/optimizer/util/var.c:187–206  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

185 */
186
187Relids
188pull_varnos(PlannerInfo *root, Node *node)
189{
190 pull_varnos_context context;
191
192 context.varnos = NULL;
193 context.root = root;
194 context.sublevels_up = 0;
195
196 /*
197 * Must be prepared to start with a Query or a bare expression tree; if
198 * it's a Query, we don't want to increment sublevels_up.
199 */
200 query_or_expression_tree_walker(node,
201 pull_varnos_walker,
202 (void *) &context,
203 0);
204
205 return context.varnos;
206}
207
208/*
209 * pull_varnos_of_level

Callers 15

examine_variableFunction · 0.85
safe_to_convert_NOTINFunction · 0.85
make_outerjoininfoFunction · 0.85
compute_semijoin_infoFunction · 0.85
distribute_qual_to_relsFunction · 0.85
process_implied_equalityFunction · 0.85
join_is_removableFunction · 0.85
reduce_outer_joins_pass2Function · 0.85

Calls 1

Tested by

no test coverage detected