pg.ddx.io  pgsql-committers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Alexander Korotkov <akorotkov@postgresql.org>
To: pgsql-committers@lists.postgresql.org
Subject: pgsql: Further improve commentary about ChangeVarNodesWalkExpression()
Date: Tue, 24 Mar 2026 07:54:34 +0000
Message-ID: <E1w4wav-001Css-1R@gemulon.postgresql.org> (raw)

Further improve commentary about ChangeVarNodesWalkExpression()

The updated comment explains why we use ChangeVarNodes_walker() instead of
expression_tree_walker(), and provides a bit more detail about the differences
in processing top-level Query and subqueries.

Author: Alexander Korotkov <aekorotkov@gmail.com>
Reviewed-by: Tom Lane <tgl@sss.pgh.pa.us>
Discussion: https://postgr.es/m/CAPpHfdvbjq342WTQ705Wmqhe8794pcp7wospz%2BWUJ2qB7vuOqA%40mail.gmail.com
Backpatch-through: 18

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/6888658516a20a2605087f557d96f3d0d0937608

Modified Files
--------------
src/backend/rewrite/rewriteManip.c | 16 +++++++++++-----
1 file changed, 11 insertions(+), 5 deletions(-)



view thread (2+ messages)  latest in thread

Message-ID: <E1w4wav-001Css-1R@gemulon.postgresql.org>
Permalink:  ../E1w4wav-001Css-1R@gemulon.postgresql.org/
Also on:    postgresql.org/message-id/E1w4wav-001Css-1R@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 using the --to and --cc options:
  reply via email

  To: pgsql-committers@postgresql.org
  Cc: akorotkov@postgresql.org, pgsql-committers@lists.postgresql.org
  Subject: Re: pgsql: Further improve commentary about ChangeVarNodesWalkExpression()
  In-Reply-To: <E1w4wav-001Css-1R@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