pg.ddx.io  pgsql-committers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Heikki Linnakangas <heikki.linnakangas@iki.fi>
To: pgsql-committers@postgresql.org
Subject: pgsql: Reformat code in ATPostAlterTypeParse.
Date: Tue, 14 Jul 2015 08:43:50 +0000
Message-ID: <E1ZEvoc-0002RX-Vp@gemulon.postgresql.org> (raw)
List-Unsubscribe:  <mailto:majordomo@postgresql.org?body=unsub%20pgsql-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
------
REL9_5_STABLE

Details
-------
http://git.postgresql.org/pg/commitdiff/6d5031efcbb4bfadc6a7c2f3c68f05a9281315f4

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


-- 
Sent via pgsql-committers mailing list (pgsql-committers@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-committers


view thread (2+ messages)

Message-ID: <E1ZEvoc-0002RX-Vp@gemulon.postgresql.org>
Permalink:  ../E1ZEvoc-0002RX-Vp@gemulon.postgresql.org/
Also on:    postgresql.org/message-id/E1ZEvoc-0002RX-Vp@gemulon.postgresql.org

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-committers@postgresql.org
  Cc: heikki.linnakangas@iki.fi
  Subject: Re: pgsql: Reformat code in ATPostAlterTypeParse.
  In-Reply-To: <E1ZEvoc-0002RX-Vp@gemulon.postgresql.org>
  References: <E1ZEvoc-0002RX-Vp@gemulon.postgresql.org>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox