Fix obsolete comment.
authorHeikki Linnakangas
Thu, 7 Jun 2018 06:56:22 +0000 (09:56 +0300)
committerHeikki Linnakangas
Thu, 7 Jun 2018 07:02:09 +0000 (10:02 +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 f42d33a969460e5629979c004bf31e2134e7e594..acd27b04821111d7835cba83f570dbca8eb3a3e8 100644 (file)
@@ -947,9 +947,7 @@ lreplace:;
                                 resultRelInfo, slot, estate);
 
        /*
-        * 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.
+        * Check the constraints of the tuple
         */
        if (resultRelationDesc->rd_att->constr || resultRelInfo->ri_PartitionCheck)
            ExecConstraints(resultRelInfo, slot, estate);