Re: [HACKERS] [PATCH] Warn users about duplicate configuration parameters

Поиск
Список
Период
Сортировка
От Euler Taveira
Тема Re: [HACKERS] [PATCH] Warn users about duplicate configuration parameters
Дата
Msg-id CAHE3wgjt1WjS8gkvBTPX6Kb2PXcBq1q75tvzUfjK6CLe0CcN2w@mail.gmail.com
обсуждение исходный текст
Ответ на [HACKERS] [PATCH] Warn users about duplicate configuration parameters  (Aleksander Alekseev <a.alekseev@postgrespro.ru>)
Список pgsql-hackers
2017-04-07 12:14 GMT-03:00 Aleksander Alekseev <a.alekseev@postgrespro.ru>:
Recently I've discovered that if there are multiple values of the same
parameter in postgresql.conf PostgreSQL will silently use the last one.
It looks like not the best approach to me. For instance, user can find
the first value in the config file and expect that it will be used, etc.

Postgres configuration file concept is based on overriding parameter values. It would be annoying if we emit warning for this feature. Also, it is easier to know which file/line the parameter value came from. You can check for duplicates with a small script.


--
   Euler Taveira                                   Timbira - http://www.timbira.com.br/
   PostgreSQL: Consultoria, Desenvolvimento, Suporte 24x7 e Treinamento

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

Предыдущее
От: David Steele
Дата:
Сообщение: Re: [HACKERS] [PATCH] Warn users about duplicate configurationparameters
Следующее
От: "David G. Johnston"
Дата:
Сообщение: Re: [HACKERS] [PATCH] Warn users about duplicate configuration parameters