Capturing pgsql ERRORS/NOTICES to file - Mailing list pgsql-sql

From George Weaver
Subject Capturing pgsql ERRORS/NOTICES to file
Date
Msg-id 001f01c38458$7865c5b0$560fa18e@cleartag
Whole thread Raw
Responses Re: Capturing pgsql ERRORS/NOTICES to file
List pgsql-sql
I am in the process of creating a batch file that will update some functions in a database for a remote user similar to:
 
psql -o output dbname < functionupdate.sql
 
Is there any way to save any ERROR and NOTICE messages to a file? 
 
The -o option doesn't capture this information.
 
Thanks,
George

pgsql-sql by date:

Previous
From: Roberto Mello
Date:
Subject: Re: Case Insensitive comparison
Next
From: Josh Berkus
Date:
Subject: Re: Capturing pgsql ERRORS/NOTICES to file