Search Postgresql Archives

Current log files when rotating?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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@xxxxxxxxxxxxx http://www.gregsmith.com Baltimore, MD

--
Sent via pgsql-general mailing list (pgsql-general@xxxxxxxxxxxxxx)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-general

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Postgresql Jobs]     [Postgresql Admin]     [Postgresql Performance]     [Linux Clusters]     [PHP Home]     [PHP on Windows]     [Kernel Newbies]     [PHP Classes]     [PHP Books]     [PHP Databases]     [Postgresql & PHP]     [Yosemite]
  Powered by Linux