Clean up MergeCheckConstraint()
authorPeter Eisentraut <peter@eisentraut.org>
Tue, 26 Sep 2023 13:01:53 +0000 (14:01 +0100)
committerPeter Eisentraut <peter@eisentraut.org>
Tue, 26 Sep 2023 13:01:53 +0000 (14:01 +0100)
commit369202bf4be6538ee29f41eb8c539d3764da4a3e
tree41d41b89508c7f528b5ef1a10ad3b6b9ef38f4b8
parent28d3c2ddcf91395920da17646a16367b6de1a93a
Clean up MergeCheckConstraint()

If the constraint is not already in the list, add it ourselves,
instead of making the caller do it.  This makes the interface more
consistent with other "merge" functions in this file.

Discussion: https://www.postgresql.org/message-id/flat/52a125e4-ff9a-95f5-9f61-b87cf447e4da%40eisentraut.org
src/backend/commands/tablecmds.c