mirror of https://github.com/citusdata/citus.git
Adjust inline_cte_walker to examine RTEs before processing and remove redundant subquery check
parent
7dd4c18935
commit
a9b3c126d2
|
@ -633,7 +633,7 @@ inline_cte_walker(Node *node, ShiftReferencesWalkerContext *context)
|
|||
query_tree_walker(query,
|
||||
inline_cte_walker,
|
||||
context,
|
||||
QTW_EXAMINE_RTES_AFTER);
|
||||
QTW_EXAMINE_RTES_BEFORE);
|
||||
|
||||
context->levelsup--;
|
||||
|
||||
|
@ -669,10 +669,6 @@ inline_cte_walker(Node *node, ShiftReferencesWalkerContext *context)
|
|||
}
|
||||
}
|
||||
|
||||
/* look into sub‑queries held inside an RTE */
|
||||
if (rte->rtekind == RTE_SUBQUERY && rte->subquery)
|
||||
inline_cte_walker((Node *) rte->subquery, context);
|
||||
|
||||
return false;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue