Current log files when rotating? - Mailing list pgsql-general

From Greg Smith
Subject Current log files when rotating?
Date
Msg-id Pine.GSO.4.64.0811101325260.9276@westnet.com
Whole thread Raw
Responses Re: Current log files when rotating?  (Tom Lane <tgl@sss.pgh.pa.us>)
Re: Current log files when rotating?  (brian <brian@zijn-digital.com>)
Re: Current log files when rotating?  ("Joshua D. Drake" <jd@commandprompt.com>)
Re: Current log files when rotating?  ("Joshua D. Drake" <jd@commandprompt.com>)
Re: Current log files when rotating?  (hubert depesz lubaczewski <depesz@depesz.com>)
Re: Current log files when rotating?  ("Asko Oja" <ascoja@gmail.com>)
Re: Current log files when rotating?  (Alvaro Herrera <alvherre@commandprompt.com>)
List pgsql-general
Let's say you're using logging_collector and you've put some %-escapes
into log_filename for daily log rotation.  Perhaps it's daily rotation
with this pattern:

log_filename = 'postgresql-%Y-%m-%d.log'

Is there any good way to ask the server what log file name it's currently
writing to?  I was trying to write something that does a "tail" on the
current log, and was hoping there was a simple way to figure out which
file that goes against.  Looking for the latest timestamp or running
strftime would both work I guess, those just seemed a little heavy (was
hoping for an "alias"-sized answer) to figure out something that the
server certainly knows.

--
* Greg Smith gsmith@gregsmith.com http://www.gregsmith.com Baltimore, MD

pgsql-general by date:

Previous
From: "Scott Marlowe"
Date:
Subject: Re: Upgrading Postgres question
Next
From: Tom Lane
Date:
Subject: Re: Current log files when rotating?