Re: Redirect ERROR, FATAL and other messages - Mailing list pgsql-general

From hubert depesz lubaczewski
Subject Re: Redirect ERROR, FATAL and other messages
Date
Msg-id 20120118160622.GA4191@depesz.com
Whole thread Raw
In response to Redirect ERROR, FATAL and other messages  (pittgs <gabriela.pittari@triagnosys.com>)
List pgsql-general
On Wed, Jan 18, 2012 at 03:20:05AM -0800, pittgs wrote:
> with "> logfile"
> Can somebody give me a hint to solve my issue?

errors are written not to stdout (which is redirected with >), but to
stderr.
which means, that you can redirect them, as with any other program, with
2>, like:

psql ... > logfile 2>&1

depesz

--
The best thing about modern society is how easy it is to avoid contact with it.
                                                             http://depesz.com/

pgsql-general by date:

Previous
From: Jerry Sievers
Date:
Subject: Re: Redirect ERROR, FATAL and other messages
Next
From: Antonio Franzoso
Date:
Subject: Full text search - How to build a filtering dictionary