pgsql: Fix comments for ChangeVarNodes() and related functions

From: Richard Guo <rguo(at)postgresql(dot)org>
To: pgsql-committers(at)lists(dot)postgresql(dot)org
Subject: pgsql: Fix comments for ChangeVarNodes() and related functions
Date: 2025-11-05 03:30:05
Message-ID: E1vGUDl-0055nC-1s@gemulon.postgresql.org
Views: Whole Thread | Raw Message | Download mbox | Resend email
Thread:
Lists: pgsql-committers

Fix comments for ChangeVarNodes() and related functions

The comment for ChangeVarNodes() refers to a parameter named
change_RangeTblRef, which does not exist in the code.

The comment for ChangeVarNodesExtended() contains an extra space,
while the comment for replace_relid_callback() has an awkward line
break and a typo.

This patch fixes these issues and revises some sentences for smoother
wording.

Oversights in commits ab42d643c and fc069a3a6.

Author: Richard Guo <guofenglinux(at)gmail(dot)com>
Discussion: https://postgr.es/m/CAMbWs480j16HC1JtjKCgj5WshivT8ZJYkOfTyZAM0POjFomJkg@mail.gmail.com
Backpatch-through: 18

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/59dec6c0b09f717e4ce78d54f578d56ef93bcc53

Modified Files
--------------
src/backend/optimizer/plan/analyzejoins.c | 18 +++++++++---------
src/backend/rewrite/rewriteManip.c | 19 ++++++++-----------
2 files changed, 17 insertions(+), 20 deletions(-)

Browse pgsql-committers by date

  From Date Subject
Next Message Richard Guo 2025-11-05 03:32:20 pgsql: Fix comments for ChangeVarNodes() and related functions
Previous Message Michael Paquier 2025-11-05 01:43:12 pgsql: Add assertions checking for the startup process in WAL replay ro