Re: log_collector doesn't respond to reloads - Mailing list pgsql-bugs

From Tom Lane
Subject Re: log_collector doesn't respond to reloads
Date
Msg-id 10866.1335576907@sss.pgh.pa.us
Whole thread Raw
In response to Re: log_collector doesn't respond to reloads  (Josh Berkus <josh@agliodbs.com>)
Responses Re: log_collector doesn't respond to reloads  (Magnus Hagander <magnus@hagander.net>)
List pgsql-bugs
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

pgsql-bugs by date:

Previous
From: Jeff Frost
Date:
Subject: Re: 9.1.3 backends getting stuck in 'startup'
Next
From: kris@spiceworks.com
Date:
Subject: BUG #6621: Constant Segmentation Faults in the Postmaster