Re: how to find log - Mailing list pgsql-hackers

From Tom Lane
Subject Re: how to find log
Date
Msg-id 383308.1608481860@sss.pgh.pa.us
Whole thread Raw
In response to how to find log  (Dmitry Markman <dmarkman@mac.com>)
Responses Re: how to find log
List 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 by date:

Previous
From: Dmitry Markman
Date:
Subject: how to find log
Next
From: Andrew Dunstan
Date:
Subject: Re: how to find log