From: Tom Lane <tgl@sss.pgh.pa.us>
To: Mark Kirkwood <mark.kirkwood@catalyst.net.nz>
Cc: Josh Berkus <josh@agliodbs.com>
Cc: pgsql-bugs@postgresql.org
Subject: Re: log_collector doesn't respond to reloads
Date: Thu, 26 Apr 2012 22:14:30 -0400
Message-ID: <20434.1335492870@sss.pgh.pa.us> (raw)
In-Reply-To: <20084.1335491774@sss.pgh.pa.us>
References: <4F99E37E.30904@agliodbs.com>
<18699.1335487841@sss.pgh.pa.us>
<4F99F24A.3030507@agliodbs.com>
<4F99F610.60109@catalyst.net.nz>
<20084.1335491774@sss.pgh.pa.us>
I wrote:
> Mark Kirkwood <mark.kirkwood@catalyst.net.nz> writes:
>> Might be a red herring, but I was able to reproduce this if (and only
>> if) I forgot to create the new dest directory before doing the reload.
>> Subsequently creating the directory and reloading did not result in a
>> file in the new location.
> Whoever wrote that thought that Log_RotationAge/Log_RotationSize would
> get reset to normal values during SIGHUP, but it's far from clear to me
> that any such thing would actually happen.
And in fact a bit of experimentation proves that it doesn't, unless
there are uncommented log_rotation_age and log_rotation_size entries
in postgresql.conf. So this is a bug, not to mention bad practice.
I think the code needs to use an explicit "rotation_disabled" flag
that it can reset in the SIGHUP block, instead of stomping on GUC
variables.
However, it remains far from clear whether this has anything to do with
Josh's situation. If it does, there should be telltale messages in
his log ...
regards, tom lane
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: tgl@sss.pgh.pa.us, mark.kirkwood@catalyst.net.nz, josh@agliodbs.com
Subject: Re: log_collector doesn't respond to reloads
In-Reply-To: <20434.1335492870@sss.pgh.pa.us>
References: <4F99E37E.30904@agliodbs.com> <18699.1335487841@sss.pgh.pa.us> <4F99F24A.3030507@agliodbs.com> <4F99F610.60109@catalyst.net.nz> <20084.1335491774@sss.pgh.pa.us> <20434.1335492870@sss.pgh.pa.us>
* 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