1
0
mirror of https://github.com/postgres/postgres.git synced 2025-09-08 00:47:37 +03:00

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
This commit is contained in:
David Rowley
2024-08-12 23:41:13 +12:00
parent ffabb56c94
commit 313df8f5ad

View File

@@ -465,8 +465,8 @@ typedef struct ResultRelInfo
IndexInfo **ri_IndexRelationInfo; IndexInfo **ri_IndexRelationInfo;
/* /*
* For UPDATE/DELETE result relations, the attribute number of the row * For UPDATE/DELETE/MERGE result relations, the attribute number of the
* identity junk attribute in the source plan's output tuples * row identity junk attribute in the source plan's output tuples
*/ */
AttrNumber ri_RowIdAttNo; AttrNumber ri_RowIdAttNo;
@@ -524,7 +524,9 @@ typedef struct ResultRelInfo
/* array of constraint-checking expr states */ /* array of constraint-checking expr states */
ExprState **ri_ConstraintExprs; 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_GeneratedExprsI;
ExprState **ri_GeneratedExprsU; ExprState **ri_GeneratedExprsU;