pg.ddx.io  pgsql-bugs@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Mark Kirkwood <mark.kirkwood@catalyst.net.nz>
To: Josh Berkus <josh@agliodbs.com>
Cc: Tom Lane <tgl@sss.pgh.pa.us>
Cc: pgsql-bugs@postgresql.org
Subject: Re: log_collector doesn't respond to reloads
Date: Fri, 27 Apr 2012 13:27:44 +1200
Message-ID: <4F99F610.60109@catalyst.net.nz> (raw)
In-Reply-To: <4F99F24A.3030507@agliodbs.com>
References: <4F99E37E.30904@agliodbs.com>
	<18699.1335487841@sss.pgh.pa.us>
	<4F99F24A.3030507@agliodbs.com>

On 27/04/12 13:11, Josh Berkus wrote:
> On 4/26/12 5:50 PM, Tom Lane wrote:
>> Josh Berkus<josh@agliodbs.com>  writes:
>>> Summary: despite pg_reload(), log directory, filename and destination
>>> don't change
>> Looking at the code, it's really hard to see how this could possibly
>> happen, unless maybe the process is blocking receipt of SIGHUP.  Which
>> it shouldn't be.  Not sure about RHEL5, but on recent Linuxen you can
>> check the process's signal masks like this:
>>
>> 	grep ^Sig /proc/NNNN/status
>>
>> where NNNN is the logging collector's PID.  Could we see that?
> SigQ:   0/399360
> SigPnd: 0000000000000000
> SigBlk: 0000000000000000
> SigIgn: 0000000001007806
> SigCgt: 0000000000000201
>

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.

Regards

Mark



view thread (16+ messages)  latest in thread

Message-ID: <4F99F610.60109@catalyst.net.nz>
Permalink:  ../4F99F610.60109@catalyst.net.nz/
Also on:    postgresql.org/message-id/4F99F610.60109@catalyst.net.nz

 · 

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: mark.kirkwood@catalyst.net.nz, josh@agliodbs.com, tgl@sss.pgh.pa.us
  Subject: Re: log_collector doesn't respond to reloads
  In-Reply-To: <4F99F610.60109@catalyst.net.nz>
  References: <4F99E37E.30904@agliodbs.com> <18699.1335487841@sss.pgh.pa.us> <4F99F24A.3030507@agliodbs.com> <4F99F610.60109@catalyst.net.nz>

* 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