Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1XbAoy-0007WP-9W for pgsql-bugs@arkaria.postgresql.org; Mon, 06 Oct 2014 16:07:36 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.80) (envelope-from ) id 1XbAox-0000CN-JV for pgsql-bugs@arkaria.postgresql.org; Mon, 06 Oct 2014 16:07:35 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.2:DHE_RSA_AES_256_CBC_SHA256:256) (Exim 4.80) (envelope-from ) id 1XazsF-0003aK-Pd for pgsql-bugs@postgresql.org; Mon, 06 Oct 2014 04:26:15 +0000 Received: from wrigleys.postgresql.org ([204.145.124.246]) by magus.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1Xazs4-0001Yz-6Y for pgsql-bugs@postgresql.org; Mon, 06 Oct 2014 04:26:11 +0000 MIME-Version: 1.0 Subject: BUG #11595: PostgreSQL applies intermediate configuration files To: pgsql-bugs@postgresql.org From: kyanh@theslinux.org Date: Mon, 06 Oct 2014 04:25:24 +0000 Message-ID: <20141006042524.2565.17347@wrigleys.postgresql.org> X-Pg-Spam-Score: -1.9 (-) Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-bugs Precedence: bulk Sender: pgsql-bugs-owner@postgresql.org 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