Skip to content

Commit 313df8f

Browse files
committed
Fix outdated comments
A few fields in ResultRelInfo are now also used for MERGE. Update the comments to mention that. Reported-by: jian he <jian.universality@gmail.com> Discussion: https://postgr.es/m/CACJufxH8-NvFhLcSZZTTW+1M9AfS4+SOTKmyPG7ZhzNvN=+NkA@mail.gmail.com:wq
1 parent ffabb56 commit 313df8f

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

src/include/nodes/execnodes.h

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -465,8 +465,8 @@ typedef struct ResultRelInfo
465465
IndexInfo **ri_IndexRelationInfo;
466466

467467
/*
468-
* For UPDATE/DELETE result relations, the attribute number of the row
469-
* identity junk attribute in the source plan's output tuples
468+
* For UPDATE/DELETE/MERGE result relations, the attribute number of the
469+
* row identity junk attribute in the source plan's output tuples
470470
*/
471471
AttrNumber ri_RowIdAttNo;
472472

@@ -524,7 +524,9 @@ typedef struct ResultRelInfo
524524
/* array of constraint-checking expr states */
525525
ExprState **ri_ConstraintExprs;
526526

527-
/* arrays of stored generated columns expr states, for INSERT and UPDATE */
527+
/*
528+
* Arrays of stored generated columns ExprStates for INSERT/UPDATE/MERGE.
529+
*/
528530
ExprState **ri_GeneratedExprsI;
529531
ExprState **ri_GeneratedExprsU;
530532

0 commit comments

Comments
 (0)