psql -L log errors

From: Hans Ginzel <hans(at)matfyz(dot)cz>
To: pgsql-novice(at)postgresql(dot)org
Subject: psql -L log errors
Date: 2015-03-11 09:00:41
Message-ID: 20150311090041.GA121555@artax.karlin.mff.cuni.cz
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: 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

Responses

Browse pgsql-novice by date

  From Date Subject
Next Message gurunadh.venkata@gmail.com 2015-03-11 09:23:48 Re: Master-slave failover question
Previous Message s d 2015-03-09 08:32:08 Re: trigger to access only the last transaction