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.