mirror of
https://github.com/postgres/postgres.git
synced 2025-07-26 01:22:12 +03:00
@ -405,9 +405,9 @@ remove_rel_from_query(PlannerInfo *root, RelOptInfo *rel,
|
|||||||
replace_varno((Node *) otherrel->lateral_vars, relid, subst);
|
replace_varno((Node *) otherrel->lateral_vars, relid, subst);
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Although we pass root->parse through cleanup procedure,
|
* Although we pass root->parse through cleanup procedure, but
|
||||||
* but parse->rtable and rte contains refs to different copies
|
* parse->rtable and rte contains refs to different copies of
|
||||||
* of the subquery.
|
* the subquery.
|
||||||
*/
|
*/
|
||||||
if (otherrel->rtekind == RTE_SUBQUERY)
|
if (otherrel->rtekind == RTE_SUBQUERY)
|
||||||
query_tree_walker(rte->subquery, replace_varno_walker, &ctx,
|
query_tree_walker(rte->subquery, replace_varno_walker, &ctx,
|
||||||
|
Reference in New Issue
Block a user