GUC tables - use designated initializers

Поиск
Список
Период
Сортировка
От Peter Smith
Тема GUC tables - use designated initializers
Дата
Msg-id CAHut+PtDj3CV+f0pVisc0XYMi2LHGBpQxQWtF0FjiSVN_nV17Q@mail.gmail.com
обсуждение исходный текст
Ответы Re: GUC tables - use designated initializers  (Michael Paquier <michael@paquier.xyz>)
Re: GUC tables - use designated initializers  (Tom Lane <tgl@sss.pgh.pa.us>)
Список pgsql-hackers
Hi hackers,

Enums index a number of the GUC tables. This all relies on the
elements being carefully arranged to be in the same order as those
enums. There are comments to say what enum index belongs to each table
element.

But why not use designated initializers to enforce what the comments
are hoping for?

~~

PSA a patch for the same.

Doing this also exposed a minor typo in the comments.
"ERROR_HANDLING" -> "ERROR_HANDLING_OPTIONS"

Furthermore, with this change, now the GUC table elements are able to
be rearranged into any different order - eg alphabetical - if that
would be useful (my patch does not do this).

~~

In passing, I also made a 0002 patch to remove some inconsistent
whitespace noticed in those config tables.

Thoughts?

------
Kind Regards,
Peter Smith.
Fujitsu Australia.

Вложения

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

Предыдущее
От: Ibrar Ahmed
Дата:
Сообщение: [Commitfest 2022-09] Last days
Следующее
От: Peter Smith
Дата:
Сообщение: GUC values - recommended way to declare the C variables?