pgsql: Reformat code in ATPostAlterTypeParse.

From: Heikki Linnakangas <heikki(dot)linnakangas(at)iki(dot)fi>
To: pgsql-committers(at)postgresql(dot)org
Subject: pgsql: Reformat code in ATPostAlterTypeParse.
Date: 2015-07-14 08:43:50
Message-ID: E1ZEvoc-0002RT-Vb@gemulon.postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-committers

Reformat code in ATPostAlterTypeParse.

The code in ATPostAlterTypeParse was very deeply indented, mostly because
there were two nested switch-case statements, which add a lot of
indentation. Use if-else blocks instead, to make the code less indented
and more readable.

This is in preparation for next patch that makes some actualy changes to
the function. These cosmetic parts have been separated to make it easier
to see the real changes in the other patch.

Branch
------
master

Details
-------
http://git.postgresql.org/pg/commitdiff/1ab9faaecb03e685aeeb16143c19c0a24d6b0048

Modified Files
--------------
src/backend/commands/tablecmds.c | 104 +++++++++++++++++++-------------------
1 file changed, 51 insertions(+), 53 deletions(-)

Browse pgsql-committers by date

  From Date Subject
Next Message Tom Lane 2015-07-14 13:02:58 Re: pgsql: Retain comments on indexes and constraints at ALTER TABLE ... TY
Previous Message Bruce Momjian 2015-07-12 21:42:52 pgsql: release notes: markup: vacuumdb is an application, not command