Re: [HACKERS] [PATCH] Warn users about duplicate configuration parameters - Mailing list pgsql-hackers

From Euler Taveira
Subject Re: [HACKERS] [PATCH] Warn users about duplicate configuration parameters
Date
Msg-id CAHE3wgjt1WjS8gkvBTPX6Kb2PXcBq1q75tvzUfjK6CLe0CcN2w@mail.gmail.com
Whole thread Raw
In response to [HACKERS] [PATCH] Warn users about duplicate configuration parameters  (Aleksander Alekseev <a.alekseev@postgrespro.ru>)
List 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 by date:

Previous
From: David Steele
Date:
Subject: Re: [HACKERS] [PATCH] Warn users about duplicate configurationparameters
Next
From: "David G. Johnston"
Date:
Subject: Re: [HACKERS] [PATCH] Warn users about duplicate configuration parameters