Commit 57f06a76 authored by Heikki Linnakangas's avatar Heikki Linnakangas

Fix obsolete comment.

The 'orig_slot' argument was removed in commit c0a8ae7b, 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
parent eee381ef
...@@ -1162,13 +1162,10 @@ lreplace:; ...@@ -1162,13 +1162,10 @@ lreplace:;
} }
/* /*
* Check the constraints of the tuple. Note that we pass the same * Check the constraints of the tuple. We've already checked the
* slot for the orig_slot argument, because unlike ExecInsert(), no * partition constraint above; however, we must still ensure the tuple
* tuple-routing is performed here, hence the slot remains unchanged. * passes all other constraints, so we will call ExecConstraints() and
* We've already checked the partition constraint above; however, we * have it validate all remaining checks.
* 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) if (resultRelationDesc->rd_att->constr)
ExecConstraints(resultRelInfo, slot, estate, false); ExecConstraints(resultRelInfo, slot, estate, false);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment