[PATCH] Warn users about duplicate configuration parameters

From: Aleksander Alekseev <a(dot)alekseev(at)postgrespro(dot)ru>
To: pgsql-hackers(at)postgresql(dot)org
Subject: [PATCH] Warn users about duplicate configuration parameters
Date: 2017-04-07 15:14:27
Message-ID: 20170407181427.698ec84b@e754
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: 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 Content-Type Size
duplicate_parameteres.patch text/x-patch 746 bytes

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Andres Freund 2017-04-07 15:15:29 Re: src/interfaces/libpq shipping nmake-related Makefiles
Previous Message Andres Freund 2017-04-07 15:12:28 Re: Supporting huge pages on Windows