From: kyanh@theslinux.org
To: pgsql-bugs@postgresql.org
Subject: BUG #11595: PostgreSQL applies intermediate configuration files
Date: Mon, 06 Oct 2014 04:25:24 +0000
Message-ID: <20141006042524.2565.17347@wrigleys.postgresql.org> (raw)
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-bugs>
The following bug has been logged on the website:
Bug reference: 11595
Logged by: Anh Huynh
Email address: kyanh@theslinux.org
PostgreSQL version: 9.3.5
Operating system: Ubuntu 14.04 LTS
Description:
Problem
=======
When a configuration directive is declared multiple times, PostgreSQL will
apply the intermediate configuration and generate useless error message.
Expected behavior
=================
PostgresSQL uses the last declaration of a setting in its configuration.
Proof of the problem
====================
[code]
$ sudo cat /etc/postgresql/9.3/main/conf.d.no-puppet/log.conf
log_line_prefix = '1 [%t] '
log_line_prefix = '2 [%t] '
log_line_prefix = '3 [%t] '
$ sudo /etc/init.d/postgresql reload
* Reloading PostgreSQL 9.3 database server
...done.
$ grep log_line_prefix /var/log/postgresql/postgresql-9.3-main.log
1 [2014-10-06 03:39:53 UTC] LOG: parameter "log_line_prefix" changed to "1
[%t] "
2 [2014-10-06 03:39:53 UTC] LOG: parameter "log_line_prefix" changed to "2
[%t] "
3 [2014-10-06 03:39:53 UTC] LOG: parameter "log_line_prefix" changed to "3
[%t] "
[/code]
--
Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-bugs
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-bugs@postgresql.org
Cc: kyanh@theslinux.org
Subject: Re: BUG #11595: PostgreSQL applies intermediate configuration files
In-Reply-To: <20141006042524.2565.17347@wrigleys.postgresql.org>
References: <20141006042524.2565.17347@wrigleys.postgresql.org>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox