Dmitriy Kudinov
Dmitriy Kudinov

Reputation: 1072

Where is Postgres 9.1 log located by default in Ubuntu

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

Upvotes: 4

Views: 18262

Answers (3)

Komolafe Ezekiel dare
Komolafe Ezekiel dare

Reputation: 115

On ubuntu, you should find the postgresql log in

 /var/log/postgresql

Upvotes: 0

Thomas Obermüller
Thomas Obermüller

Reputation: 818

In Ubuntu it is one of the files in /var/lib/postgresql/9.3/main/pg_log/.

Upvotes: 0

Clodoaldo Neto
Clodoaldo Neto

Reputation: 125304

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

Upvotes: 6

Related Questions