Fix misleading comment in RangeTblEntry
authorRichard Guo <rguo@postgresql.org>
Mon, 22 Sep 2025 01:04:39 +0000 (10:04 +0900)
committerRichard Guo <rguo@postgresql.org>
Mon, 22 Sep 2025 01:04:39 +0000 (10:04 +0900)
The comment describing join_using_alias incorrectly referred to the
alias field as being defined "below", when it actually appears earlier
in the RangeTblEntry struct.  This patch fixes that.

Author: Steve Lau <stevelauc@outlook.com>
Reviewed-by: Chao Li <li.evan.chao@gmail.com>
Discussion: https://postgr.es/m/TYWPR01MB10612B020C33FD08F729415CEB613A@TYWPR01MB10612.jpnprd01.prod.outlook.com

src/include/nodes/parsenodes.h

index 86a236bd58b1abde2f7c053295777fac68ace651..4ed14fc5b78b6379be925b122140c454e24dff65 100644 (file)
@@ -1189,7 +1189,7 @@ typedef struct RangeTblEntry
 
    /*
     * join_using_alias is an alias clause attached directly to JOIN/USING. It
-    * is different from the alias field (below) in that it does not hide the
+    * is different from the alias field (above) in that it does not hide the
     * range variables of the tables being joined.
     */
    Alias      *join_using_alias pg_node_attr(query_jumble_ignore);