X-Original-To: pgsql-sql-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [64.117.224.130]) by svr1.postgresql.org (Postfix) with ESMTP id 549C3D1B4E9 for ; Fri, 26 Sep 2003 18:03:53 +0000 (GMT) Received: from svr1.postgresql.org ([64.117.224.193]) by localhost (neptune.hub.org [64.117.224.130]) (amavisd-new, port 10024) with ESMTP id 83603-08 for ; Fri, 26 Sep 2003 15:03:23 -0300 (ADT) Received: from smtp2.mts.net (smtp2.mts.net [205.200.16.113]) by svr1.postgresql.org (Postfix) with ESMTP id 292F9D1B519 for ; Fri, 26 Sep 2003 15:03:22 -0300 (ADT) Received: from cleartag (wnpgmb01bbz-ac04-p12-94.mts.net [142.161.12.94]) by smtp2.mts.net (8.12.8-20030918/8.11.3) with SMTP id h8QI2nni022091 for ; Fri, 26 Sep 2003 13:03:13 -0500 (CDT) Message-ID: <001f01c38458$7865c5b0$560fa18e@cleartag> From: "George Weaver" To: Subject: Capturing pgsql ERRORS/NOTICES to file Date: Fri, 26 Sep 2003 13:00:00 -0500 MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_NextPart_000_001C_01C3842E.1825D340" X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 6.00.2800.1158 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1165 X-Virus-Scanned: by amavisd-new at postgresql.org X-Spam-Status: No, hits=0.1 tagged_above=0.0 required=5.0 tests=HTML_50_60 X-Spam-Level: X-Archive-Number: 200309/335 X-Sequence-Number: 15313 This is a multi-part message in MIME format. ------=_NextPart_000_001C_01C3842E.1825D340 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable I am in the process of creating a batch file that will update some function= s 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?=20=20 The -o option doesn't capture this information. Thanks, George ------=_NextPart_000_001C_01C3842E.1825D340 Content-Type: text/html; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable
I am in the process of creating a bat= ch file=20 that will update some functions in a database for a remote user similar=20 to:
 
psql -o output dbname <=20 functionupdate.sql
 
Is there any way to save any ERROR and=20 NOTICE messages to a file? 
 
The -o option doesn't capture this=20 information.
 
Thanks,
George
------=_NextPart_000_001C_01C3842E.1825D340--