Fix outdated comment in ExecDelete
authorAlvaro Herrera <alvherre@alvh.no-ip.org>
Thu, 17 Nov 2022 11:52:20 +0000 (12:52 +0100)
committerAlvaro Herrera <alvherre@alvh.no-ip.org>
Thu, 17 Nov 2022 11:52:20 +0000 (12:52 +0100)
This commend references a struct that disappeared before MERGE was
merged ... and ExecDelete is not called by the committed MERGE anyway.
Revert to the original wording.

Backpatch to 15

src/backend/executor/nodeModifyTable.c

index d8fd3cfdbef4bdab924febd8bbaf19ca649a30e2..0f357f822178cb0e965bfc2a338d60e9ca914590 100644 (file)
@@ -1515,13 +1515,7 @@ ldelete:
                                        ereport(ERROR,
                                                        (errcode(ERRCODE_T_R_SERIALIZATION_FAILURE),
                                                         errmsg("could not serialize access due to concurrent delete")));
-
-                               /*
-                                * tuple already deleted; nothing to do. But MERGE might want
-                                * to handle it differently. We've already filled-in
-                                * actionInfo with sufficient information for MERGE to look
-                                * at.
-                                */
+                               /* tuple already deleted; nothing to do */
                                return NULL;
 
                        default: