]> granicus.if.org Git - postgresql/commitdiff
Fix obsolete comment.
authorHeikki Linnakangas <heikki.linnakangas@iki.fi>
Thu, 7 Jun 2018 06:56:22 +0000 (09:56 +0300)
committerHeikki Linnakangas <heikki.linnakangas@iki.fi>
Thu, 7 Jun 2018 06:56:22 +0000 (09:56 +0300)
The 'orig_slot' argument was removed in commit c0a8ae7be392, but that
commit forgot to update the comment.

Author: Amit Langote
Discussion: https://www.postgresql.org/message-id/194ac4bf-7b4a-c887-bf26-bc1a85ea995a@lab.ntt.co.jp

src/backend/executor/nodeModifyTable.c

index c4c841cdd794d1054201a343ced4ce05b2cfe227..2a4dfea1511522d4880166779f9ee7ae67a45bf6 100644 (file)
@@ -1162,13 +1162,10 @@ lreplace:;
                }
 
                /*
-                * Check the constraints of the tuple.  Note that we pass the same
-                * slot for the orig_slot argument, because unlike ExecInsert(), no
-                * tuple-routing is performed here, hence the slot remains unchanged.
-                * We've already checked the partition constraint above; however, we
-                * must still ensure the tuple passes all other constraints, so we
-                * will call ExecConstraints() and have it validate all remaining
-                * checks.
+                * Check the constraints of the tuple.  We've already checked the
+                * partition constraint above; however, we must still ensure the tuple
+                * passes all other constraints, so we will call ExecConstraints() and
+                * have it validate all remaining checks.
                 */
                if (resultRelationDesc->rd_att->constr)
                        ExecConstraints(resultRelInfo, slot, estate, false);