Fix outdated comments
authorDavid Rowley <[email protected]>
Mon, 12 Aug 2024 11:41:13 +0000 (23:41 +1200)
committerDavid Rowley <[email protected]>
Mon, 12 Aug 2024 11:41:13 +0000 (23:41 +1200)
A few fields in ResultRelInfo are now also used for MERGE.  Update the
comments to mention that.

Reported-by: jian he <[email protected]>
Discussion: https://postgr.es/m/CACJufxH8-NvFhLcSZZTTW+1M9AfS4+SOTKmyPG7ZhzNvN=+NkA@mail.gmail.com:wq

src/include/nodes/execnodes.h

index c3670f7158c8a3572c424d19155e403b5f337e5f..87f1519ec6521c7ddf0da8e89ad60a3c7272a3ea 100644 (file)
@@ -465,8 +465,8 @@ typedef struct ResultRelInfo
    IndexInfo **ri_IndexRelationInfo;
 
    /*
-    * For UPDATE/DELETE result relations, the attribute number of the row
-    * identity junk attribute in the source plan's output tuples
+    * For UPDATE/DELETE/MERGE result relations, the attribute number of the
+    * row identity junk attribute in the source plan's output tuples
     */
    AttrNumber  ri_RowIdAttNo;
 
@@ -524,7 +524,9 @@ typedef struct ResultRelInfo
    /* array of constraint-checking expr states */
    ExprState **ri_ConstraintExprs;
 
-   /* arrays of stored generated columns expr states, for INSERT and UPDATE */
+   /*
+    * Arrays of stored generated columns ExprStates for INSERT/UPDATE/MERGE.
+    */
    ExprState **ri_GeneratedExprsI;
    ExprState **ri_GeneratedExprsU;