From: Tom Lane <tgl@sss.pgh.pa.us>
To: Josh Berkus <josh@agliodbs.com>
Cc: Mark Kirkwood <mark.kirkwood@catalyst.net.nz>
Cc: pgsql-bugs@postgresql.org
Subject: Re: log_collector doesn't respond to reloads
Date: Fri, 27 Apr 2012 21:35:07 -0400
Message-ID: <10866.1335576907@sss.pgh.pa.us> (raw)
In-Reply-To: <4F9B4649.10100@agliodbs.com>
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>
<4F9A0017.2070404@agliodbs.com>
<20658.1335493562@sss.pgh.pa.us>
<4F9B4649.10100@agliodbs.com>
Josh Berkus <josh@agliodbs.com> writes:
> You can end up in a situation where the logs aren't going where they're
> supposed to due to some external problem, and that the DBA has no way to
> find out what went wrong because he doesn't know where the logs are *now*.
Well, if nothing else, lsof would help. Another possibility is that we
might change the logging collector process to show its current target
filename in ps status (although might there be security/privacy issues
with that?). Neither of those things will help Windows users
of course, but the sorts of cases you're presenting aren't going to be
happening on Windows boxes.
[ thinks some more... ] A lower-tech solution would be to always write
the name of the current log target file into some small text file in
$PGDATA.
On the whole though, I think this is an invented problem. We've never
heard a complaint from the field about it.
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, josh@agliodbs.com, mark.kirkwood@catalyst.net.nz
Subject: Re: log_collector doesn't respond to reloads
In-Reply-To: <10866.1335576907@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> <4F9A0017.2070404@agliodbs.com> <20658.1335493562@sss.pgh.pa.us> <4F9B4649.10100@agliodbs.com> <10866.1335576907@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