pgsql: Clean up MergeCheckConstraint()

From: Peter Eisentraut <peter(at)eisentraut(dot)org>
To: pgsql-committers(at)lists(dot)postgresql(dot)org
Subject: pgsql: Clean up MergeCheckConstraint()
Date: 2023-09-26 13:07:28
Message-ID: E1ql7mi-0063eB-0z@gemulon.postgresql.org
Views: Whole Thread | Raw Message | Download mbox | Resend email
Thread:
Lists: pgsql-committers

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

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/369202bf4be6538ee29f41eb8c539d3764da4a3e

Modified Files
--------------
src/backend/commands/tablecmds.c | 48 ++++++++++++++++++----------------------
1 file changed, 22 insertions(+), 26 deletions(-)

Browse pgsql-committers by date

  From Date Subject
Next Message Peter Eisentraut 2023-09-26 15:20:43 pgsql: MergeAttributes() and related variable renaming
Previous Message Heikki Linnakangas 2023-09-26 12:53:15 pgsql: Fix another bug in parent page splitting during GiST index build