Re: Current log files when rotating?

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: Current log files when rotating?
Дата
Msg-id 12352.1226343539@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Current log files when rotating?  (Greg Smith <gsmith@gregsmith.com>)
Список pgsql-general
Greg Smith <gsmith@gregsmith.com> writes:
> 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.

Well, the log collector subprocess knows it, but nothing else does.

            regards, tom lane

В списке pgsql-general по дате отправления:

Предыдущее
От: Greg Smith
Дата:
Сообщение: Current log files when rotating?
Следующее
От: brian
Дата:
Сообщение: Re: Current log files when rotating?