aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Rowley <drowley@postgresql.org>2024-08-12 23:41:13 +1200
committerDavid Rowley <drowley@postgresql.org>2024-08-12 23:41:13 +1200
commit313df8f5adde186b0052d7d634a6d0ae41852de0 (patch)
treee68ab0a9575cadc5b389b0018ed455ecdb363760
parentffabb56c9460b8e2a3fffeea6263a61590ba006d (diff)
downloadpostgresql-313df8f5adde186b0052d7d634a6d0ae41852de0.tar.gz
postgresql-313df8f5adde186b0052d7d634a6d0ae41852de0.zip
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
-rw-r--r--src/include/nodes/execnodes.h8
1 files changed, 5 insertions, 3 deletions
diff --git a/src/include/nodes/execnodes.h b/src/include/nodes/execnodes.h
index c3670f7158c..87f1519ec65 100644
--- a/src/include/nodes/execnodes.h
+++ b/src/include/nodes/execnodes.h
@@ -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;