Re: how to find log

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Dmitry Markman <dmarkman(at)mac(dot)com>
Cc: pgsql-hackers(at)lists(dot)postgresql(dot)org
Subject: Re: how to find log
Date: 2020-12-20 16:31:00
Message-ID: 383308.1608481860@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

Dmitry Markman <dmarkman(at)mac(dot)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

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Andrew Dunstan 2020-12-20 17:04:56 Re: how to find log
Previous Message Dmitry Markman 2020-12-20 14:16:12 how to find log