pgsql: Clean up MergeAttributesIntoExisting()

Started by Peter Eisentrautalmost 3 years ago1 messagescomitters
Jump to latest
#1Peter Eisentraut
peter_e@gmx.net

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: /messages/by-id/52a125e4-ff9a-95f5-9f61-b87cf447e4da@eisentraut.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(-)