pg.ddx.io  pgsql-committers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: pgsql-committers@lists.postgresql.org
Subject: pgsql: Split QTW_EXAMINE_RTES flag into QTW_EXAMINE_RTES_BEFORE/_AFTER.
Date: Fri, 25 Jan 2019 22:09:53 +0000
Message-ID: <E1gn9fd-0007pY-Tu@gemulon.postgresql.org> (raw)

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

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/18c0da88a5d9da566c3bfac444366b73bd0b57da

Modified Files
--------------
src/backend/nodes/nodeFuncs.c        | 14 +++++++++++---
src/backend/optimizer/plan/setrefs.c |  4 ++--
src/backend/rewrite/rewriteManip.c   |  6 +++---
src/include/nodes/nodeFuncs.h        |  7 +++++--
4 files changed, 21 insertions(+), 10 deletions(-)



Message-ID: <E1gn9fd-0007pY-Tu@gemulon.postgresql.org>
Permalink:  ../E1gn9fd-0007pY-Tu@gemulon.postgresql.org/
Also on:    postgresql.org/message-id/E1gn9fd-0007pY-Tu@gemulon.postgresql.org

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-committers@postgresql.org
  Cc: tgl@sss.pgh.pa.us
  Subject: Re: pgsql: Split QTW_EXAMINE_RTES flag into QTW_EXAMINE_RTES_BEFORE/_AFTER.
  In-Reply-To: <E1gn9fd-0007pY-Tu@gemulon.postgresql.org>
  References: <E1gn9fd-0007pY-Tu@gemulon.postgresql.org>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox