]> granicus.if.org Git - postgresql/commit
Split QTW_EXAMINE_RTES flag into QTW_EXAMINE_RTES_BEFORE/_AFTER.
authorTom Lane <tgl@sss.pgh.pa.us>
Fri, 25 Jan 2019 22:09:45 +0000 (17:09 -0500)
committerTom Lane <tgl@sss.pgh.pa.us>
Fri, 25 Jan 2019 22:09:45 +0000 (17:09 -0500)
commit18c0da88a5d9da566c3bfac444366b73bd0b57da
tree9ee280a42d3aa696c896eb3b82c7818578362ff6
parentff750ce2d82979e9588c629955e161a9379b05f3
Split QTW_EXAMINE_RTES flag into QTW_EXAMINE_RTES_BEFORE/_AFTER.

This change allows callers of query_tree_walker() to choose whether
to visit an RTE before or after visiting the contents of the RTE
(i.e., prefix or postfix tree order).  All existing users of
QTW_EXAMINE_RTES want the QTW_EXAMINE_RTES_BEFORE behavior, but
an upcoming patch will want QTW_EXAMINE_RTES_AFTER, and it seems
like a potentially useful change on its own.

Andreas Karlsson (extracted from CTE inlining patch)

Discussion: https://postgr.es/m/8810.1542402910@sss.pgh.pa.us
src/backend/nodes/nodeFuncs.c
src/backend/optimizer/plan/setrefs.c
src/backend/rewrite/rewriteManip.c
src/include/nodes/nodeFuncs.h