pg.ddx.io  pgsql-bugs@postgresql.org mailing list archive  
help / color / mirror / Atom feed
BUG #11595: PostgreSQL applies intermediate configuration files
3+ messages / 3 participants
[nested] [flat]

* BUG #11595: PostgreSQL applies intermediate configuration files
@ 2014-10-06 04:25  kyanh@theslinux.org
  0 siblings, 1 reply; 3+ messages in thread

From: kyanh@theslinux.org @ 2014-10-06 04:25 UTC (permalink / raw)
  To: pgsql-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



^ permalink  raw  reply  [nested|flat] 3+ messages in thread

* Re: BUG #11595: PostgreSQL applies intermediate configuration files
@ 2014-10-06 19:13  Tom Lane <tgl@sss.pgh.pa.us>
  parent: kyanh@theslinux.org
  0 siblings, 1 reply; 3+ messages in thread

From: Tom Lane @ 2014-10-06 19:13 UTC (permalink / raw)
  To: kyanh@theslinux.org; +Cc: pgsql-bugs

kyanh@theslinux.org writes:
> When a configuration directive is declared multiple times, PostgreSQL will
> apply the intermediate configuration and generate useless error message.

This is fixed for 9.4.  Thanks for the report though!

			regards, tom lane


-- 
Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-bugs



^ permalink  raw  reply  [nested|flat] 3+ messages in thread

* Re: BUG #11595: PostgreSQL applies intermediate configuration files
@ 2014-10-06 23:24  Anh K. Huynh <kyanh@theslinux.org>
  parent: Tom Lane <tgl@sss.pgh.pa.us>
  0 siblings, 0 replies; 3+ messages in thread

From: Anh K. Huynh @ 2014-10-06 23:24 UTC (permalink / raw)
  To: Tom Lane <tgl@sss.pgh.pa.us>; +Cc: pgsql-bugs

On Mon, 06 Oct 2014 15:13:04 -0400
Tom Lane <tgl@sss.pgh.pa.us> wrote:

> kyanh@theslinux.org writes:
> > When a configuration directive is declared multiple times,
> > PostgreSQL will apply the intermediate configuration and generate
> > useless error message.
> 
> This is fixed for 9.4.  Thanks for the report though!
> 
> 			regards, tom lane
> 

Thanks for your feedback, and I'm sorry for my duplicate report.

Regards,

--
I am ... 5.5 dog years old.



-- 
Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-bugs



^ permalink  raw  reply  [nested|flat] 3+ messages in thread


end of thread, other threads:[~2014-10-06 23:24 UTC | newest]

Thread overview: 3+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2014-10-06 04:25 BUG #11595: PostgreSQL applies intermediate configuration files kyanh@theslinux.org
2014-10-06 19:13 ` Tom Lane <tgl@sss.pgh.pa.us>
2014-10-06 23:24   ` Anh K. Huynh <kyanh@theslinux.org>

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