Clean up MergeAttributesIntoExisting()
authorPeter Eisentraut <peter@eisentraut.org>
Tue, 26 Sep 2023 08:09:36 +0000 (09:09 +0100)
committerPeter Eisentraut <peter@eisentraut.org>
Tue, 26 Sep 2023 08:09:36 +0000 (09:09 +0100)
commiteddad679d2ab6d7369767d1c2f01fdbe76afbce3
treea94dbfaeacba69da2f67b6562d48beee821bfddd
parenteb36c6ac8478e664edebe8131ffa23c394e487cc
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
src/backend/commands/tablecmds.c