pg.ddx.io  pgsql-bugs@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Jeff Frost <jeff@pgexperts.com>
To: pgsql-bugs@postgresql.org
Subject: Re: BUG #8225: logging options don't change after reload
Date: Tue, 11 Jun 2013 15:29:59 -0700
Message-ID: <51B7A4E7.2070905@pgexperts.com> (raw)
In-Reply-To: <WM!7dd318de39fe0393dbdb0eb6e092606a70935c27574f32d92811ffa56abfbec4ee257903de788d5de03044f41ffbc81c!@asav-1.01.com>
References: <E1UmX2Z-0000wT-FC@wrigleys.postgresql.org>
	<WM!7dd318de39fe0393dbdb0eb6e092606a70935c27574f32d92811ffa56abfbec4ee257903de788d5de03044f41ffbc81c!@asav-1.01.com>
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-bugs>

On 06/11/13 15:27, jeff@pgexperts.com wrote:
> The following bug has been logged on the website:
>
> Bug reference:      8225
> Logged by:          Jeff Frost
> Email address:      jeff@pgexperts.com
> PostgreSQL version: 9.1.8
> Operating system:   various
> Description:        
>
> I've seen this a few times on client servers but still can't seem to boil it
> down to a nice reproducible test case.  
>
> What happens is that we change various logging options in postgresql.conf,
> then reload, and every so often, the settings don't seem to take effect even
> though they are logged as being changed.
>
> Here's an example from a recent logging run:
>
> grep -hi checkpoint *.csv
> 2013-05-31 12:58:33.051 MDT,,,5398,,5189c940.1516,8,,2013-05-07 21:40:48
> MDT,,0,LOG,00000,"parameter ""log_checkpoints"" changed to
> ""on""",,,,,,,,,""
> 2013-05-31 15:18:36.131 MDT,,,5398,,5189c940.1516,22,,2013-05-07 21:40:48
> MDT,,0,LOG,00000,"parameter ""log_checkpoints"" removed from configuration
> file, reset to default",,,,,,,,,""
>
> So, note that log_checkpoints was logged as being changed, then 2hrs 20mins
> later it's logged as being set back to default, but there's not a single
> checkpoint logged in that time period.  I checked and checkpoint_timeout is
> indeed set to 300s.  
>
> Also, in addition, we change the log_filename to datacollection-%H and while
> that also shows up in the log during the reload:
>
> 2013-05-31 12:58:33.051 MDT,,,5398,,5189c940.1516,9,,2013-05-07 21:40:48
> MDT,,0,LOG,00000,"parameter ""log_filename"" changed to
> ""datacollection-%H""",,,,,,,,,""
>
> and the logfile is created, postgresql continues to log to the old filename
> for the duration of the logging run.
>
> I've seen this on recent 9.0, 9.1 and 9.2 versions.  This particular run was
> on 9.1.8.
>
>
>

Oh sorry, that should specify "Various linux version" meaning: Ubuntu 12.04,
Ubuntu 10.04, CentOS 5/6, Scientific Linux 6.

-- 
Jeff Frost <jeff@pgexperts.com>
CTO, PostgreSQL Experts, Inc.
Phone: 1-888-PG-EXPRT x506
FAX: 415-762-5122
http://www.pgexperts.com/ 



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



view thread (10+ messages)  latest in thread

Message-ID: <51B7A4E7.2070905@pgexperts.com>
Permalink:  ../51B7A4E7.2070905@pgexperts.com/
Also on:    postgresql.org/message-id/51B7A4E7.2070905@pgexperts.com

 · 

reply

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: jeff@pgexperts.com
  Subject: Re: BUG #8225: logging options don't change after reload
  In-Reply-To: <51B7A4E7.2070905@pgexperts.com>
  References: <E1UmX2Z-0000wT-FC@wrigleys.postgresql.org> <WM!7dd318de39fe0393dbdb0eb6e092606a70935c27574f32d92811ffa56abfbec4ee257903de788d5de03044f41ffbc81c!@asav-1.01.com> <51B7A4E7.2070905@pgexperts.com>

* 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