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

From Aleksander Alekseev
Subject [HACKERS] [PATCH] Warn users about duplicate configuration parameters
Date
Msg-id 20170407181427.698ec84b@e754
Whole thread Raw
Responses Re: [HACKERS] [PATCH] Warn users about duplicate configurationparameters
Re: [HACKERS] [PATCH] Warn users about duplicate configuration parameters
List pgsql-hackers
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?

--
Best regards,
Aleksander Alekseev

Attachment

pgsql-hackers by date:

Previous
From: Andres Freund
Date:
Subject: Re: [HACKERS] Supporting huge pages on Windows
Next
From: Andres Freund
Date:
Subject: Re: [HACKERS] src/interfaces/libpq shipping nmake-related Makefiles