Where is Postgres 9.1 log located by default in Ubuntu

12,884

In RedHat like distributions it would be in /var/lib/pgsql/pgstartup.log or look for the variable PGLOG in the init script in /etc/init.d/postgresql

Share:
12,884
Dmitriy Kudinov
Author by

Dmitriy Kudinov

Updated on June 04, 2022

Comments

  • Dmitriy Kudinov
    Dmitriy Kudinov almost 2 years

    Where I can find startup log of of my postgres 9.1 server. I'm using Ubuntu. postgres restart gets failed. find / -name pg_log founds nothing standard log at /etc/postgres/main/9.1/ is clear

  • Dmitriy Kudinov
    Dmitriy Kudinov almost 12 years
    No variable PGLOG, and no file psstartup.log in system
  • Clodoaldo Neto
    Clodoaldo Neto almost 12 years
    @Evl-ntnt Did you find the init script? If so look at the start() function to know which variable contains the startup log file name. Then search for that variable.