]> granicus.if.org Git - postgresql/commit
Teach query_tree_walker, query_tree_mutator, and SS_finalize_plan to
authorTom Lane <tgl@sss.pgh.pa.us>
Sat, 18 May 2002 18:49:41 +0000 (18:49 +0000)
committerTom Lane <tgl@sss.pgh.pa.us>
Sat, 18 May 2002 18:49:41 +0000 (18:49 +0000)
commita5b370943e1a7936e0118641f16acf6dbcc829cc
tree3c133b3fd1134cc9fb2ca711b58dda6bc3c7e5f0
parent2c50f6344b4160dc8748b9a12db64fa2e94b46e0
Teach query_tree_walker, query_tree_mutator, and SS_finalize_plan to
process function RTE expressions, which they were previously missing.
This allows outer-Var references and subselects to work correctly in
the arguments of a function RTE.  Install check to prevent function RTEs
from cross-referencing Vars of sibling FROM-items, which doesn't make
any sense (if you want to join, write a JOIN or WHERE clause).
src/backend/optimizer/plan/planner.c
src/backend/optimizer/plan/subselect.c
src/backend/optimizer/util/clauses.c
src/backend/parser/parse_clause.c
src/include/optimizer/subselect.h