pgsql: Reformat code in ATPostAlterTypeParse.

Поиск
Список
Период
Сортировка
От Heikki Linnakangas
Тема pgsql: Reformat code in ATPostAlterTypeParse.
Дата
Msg-id E1ZEvoc-0002RX-Vp@gemulon.postgresql.org
обсуждение исходный текст
Список 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
------
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(-)


В списке pgsql-committers по дате отправления:

Предыдущее
От: Heikki Linnakangas
Дата:
Сообщение: pgsql: Reformat code in ATPostAlterTypeParse.
Следующее
От: Heikki Linnakangas
Дата:
Сообщение: pgsql: Retain comments on indexes and constraints at ALTER TABLE ... TY