How to get previous log file - Mailing list pgsql-general

From Andrus
Subject How to get previous log file
Date
Msg-id 7F15982900DB4EC0A233213D0ED79C70@dell2
Whole thread Raw
Responses Re: How to get previous log file
List pgsql-general
Hi!

select pg_read_file(pg_current_logfile()) 

retrieves today log file.
Log files are in log directory:

/var/lib/postgresql/12/main/log# ls
...
postgresql-2020-06-08_000000.log  postgresql-2020-06-18_000000.log  postgresql-2020-06-28_000000.log
postgresql-2020-06-09_000000.log  postgresql-2020-06-19_000000.log

How get yesterday log file from remote client application using postgresql query ?
Using Postgres 12 in Debian.

Andrus.




pgsql-general by date:

Previous
From: Brajendra Pratap Singh
Date:
Subject: Postgresql HA Cluster
Next
From: Adrian Klaver
Date:
Subject: Re: How to get previous log file