Re: how to find log

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: how to find log
Дата
Msg-id 383308.1608481860@sss.pgh.pa.us
обсуждение исходный текст
Ответ на how to find log  (Dmitry Markman <dmarkman@mac.com>)
Ответы Re: how to find log  (Andrew Dunstan <andrew@dunslane.net>)
Список pgsql-hackers
Dmitry Markman <dmarkman@mac.com> writes:
> suppose I started the server with the following command
> pg_ctl -D . . . start -l <logfilename>
> is there a way to get <logfilename> later by sending some query to the server or

No, the server has no way to know where its stdout/stderr were
pointed to.  You might want to enable the syslogger output method
(see logging_collector) to have something a bit more featureful.

https://www.postgresql.org/docs/current/runtime-config-logging.html

            regards, tom lane



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

Предыдущее
От: Dmitry Markman
Дата:
Сообщение: how to find log
Следующее
От: Andrew Dunstan
Дата:
Сообщение: Re: how to find log