psql -L log errors - Mailing list pgsql-novice

From Hans Ginzel
Subject psql -L log errors
Date
Msg-id 20150311090041.GA121555@artax.karlin.mff.cuni.cz
Whole thread Raw
Responses Re: psql -L log errors
List pgsql-novice
Hello!

There is, in documentation of psql client (http://www.postgresql.org/docs/9.4/static/app-psql.html):
--log-file=filename
     Write all query output into file filename, in addition to the normal output destination.

But it seems, that psql logs only the query output (and input if -e or -a),
but does not write the error output. How to also log the errors, please?

Thanks
Hans


pgsql-novice by date:

Previous
From: s d
Date:
Subject: Re: trigger to access only the last transaction
Next
From: "gurunadh.venkata@gmail.com"
Date:
Subject: Re: Master-slave failover question