pgsql: Use C99-designated initializer syntax for more arrays

Поиск
Список
Период
Сортировка
От Michael Paquier
Тема pgsql: Use C99-designated initializer syntax for more arrays
Дата
Msg-id E1rf768-0017lu-Cl@gemulon.postgresql.org
обсуждение исходный текст
Список pgsql-committers
Use C99-designated initializer syntax for more arrays

This is in the same spirit as ef5e2e90859a, updating this time some
arrays in parser.c, relpath.c, guc_tables.c and pg_dump_sort.c so as the
order of their elements has no need to match the enum structures they
are based on anymore.

Author: Jelte Fennema-Nio
Reviewed-by: Jian He, Japin Li
Discussion: https://postgr.es/m/CAGECzQT3caUbcCcszNewCCmMbCuyP7XNAm60J3ybd6PN5kH2Dw@mail.gmail.com

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/afd8ef39094b0dff9d1f2bfecb1d9fa056b85e19

Modified Files
--------------
src/backend/parser/parser.c         |  12 +--
src/backend/utils/misc/guc_tables.c | 187 ++++++++++++++----------------------
src/bin/pg_dump/pg_dump_sort.c      |  94 +++++++++---------
src/common/relpath.c                |   8 +-
4 files changed, 128 insertions(+), 173 deletions(-)


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

Предыдущее
От: Nathan Bossart
Дата:
Сообщение: pgsql: Fix comments for the dshash_parameters struct.
Следующее
От: David Rowley
Дата:
Сообщение: pgsql: Refactor AllocSetAlloc(), separating hot and cold paths