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

From Andres Freund
Subject Re: [HACKERS] [PATCH] Warn users about duplicate configurationparameters
Date
Msg-id 20170407151749.3pnrjozc4uprnyi2@alap3.anarazel.de
Whole thread Raw
In response to [HACKERS] [PATCH] Warn users about duplicate configuration parameters  (Aleksander Alekseev <a.alekseev@postgrespro.ru>)
Responses Re: [HACKERS] [PATCH] Warn users about duplicate configurationparameters  (Tatsuo Ishii <ishii@sraoss.co.jp>)
Re: [HACKERS] [PATCH] Warn users about duplicate configurationparameters  (Aleksander Alekseev <a.alekseev@postgrespro.ru>)
List pgsql-hackers
On 2017-04-07 18:14:27 +0300, Aleksander Alekseev wrote:
> Hi.
> 
> 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.
> 
> I suggest to warn users about duplicated parameters. Here is a
> corresponding patch.
> 
> Thoughts?

-1 - I frequently just override earlier parameters by adding an include
at the end of the file.  Also, with postgresql.auto.conf it's even more
common to override parameters.


Greetings,

Andres Freund



pgsql-hackers by date:

Previous
From: Andres Freund
Date:
Subject: Re: [HACKERS] src/interfaces/libpq shipping nmake-related Makefiles
Next
From: Tatsuo Ishii
Date:
Subject: Re: [HACKERS] [PATCH] Warn users about duplicate configurationparameters