pgsql: Clean up MergeAttributesIntoExisting()

From: Peter Eisentraut <peter(at)eisentraut(dot)org>
To: pgsql-committers(at)lists(dot)postgresql(dot)org
Subject: pgsql: Clean up MergeAttributesIntoExisting()
Date: 2023-09-26 08:46:26
Message-ID: E1ql3i5-0061pp-Vs@gemulon.postgresql.org
Views: Whole Thread | Raw Message | Download mbox | Resend email
Thread:
Lists: pgsql-committers

Clean up MergeAttributesIntoExisting()

Make variable naming clearer and more consistent. Move some variables
to smaller scope. Remove some unnecessary intermediate variables.
Try to save some vertical space.

Apply analogous changes to nearby MergeConstraintsIntoExisting() and
RemoveInheritance() for consistency.

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

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/eddad679d2ab6d7369767d1c2f01fdbe76afbce3

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

Browse pgsql-committers by date

  From Date Subject
Next Message Peter Eisentraut 2023-09-26 10:34:14 pgsql: Add some const qualifiers
Previous Message Peter Eisentraut 2023-09-26 06:58:26 pgsql: Remove unused include