Remove redundant extra_desc info for enum GUC variables?
В списке pgsql-hackers по дате отправления:
| От | Tom Lane |
|---|---|
| Тема | Remove redundant extra_desc info for enum GUC variables? |
| Дата | |
| Msg-id | 28724.1211831808@sss.pgh.pa.us обсуждение |
| Ответы |
Re: Remove redundant extra_desc info for enum GUC
variables?
|
| Список | pgsql-hackers |
Most of the GUC variables that have been converted to enums have an
extra_desc string that lists the valid values --- in HEAD, try
SELECT name,extra_desc,enumvals from pg_settings where vartype = 'enum';
ISTM this is just about 100% redundant with the enumvals column and
should be removed to reduce translation and maintenance effort.
Any objections?
One point of interest is that for client_min_messages and
log_min_messages, the ordering of the values has significance, and it's
different for the two cases. The enum patch has lost that info by
trying to use the same auxiliary list for both variables. But having
two lists doesn't seem like an excessive amount of overhead.
regards, tom lane
В списке pgsql-hackers по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера