Received: from localhost (postgresql.org [64.49.215.8]) by postgresql.org (Postfix) with ESMTP id DDB3C4767A5 for ; Tue, 5 Nov 2002 12:35:12 -0500 (EST) Received: from localhost.localdomain (unknown [65.217.53.66]) by postgresql.org (Postfix) with ESMTP id F381847677D for ; Tue, 5 Nov 2002 12:35:10 -0500 (EST) Received: from thorn.mmrd.com (thorn.mmrd.com [172.25.10.100]) by localhost.localdomain (8.12.5/8.12.5) with ESMTP id gA5HaHCL008945; Tue, 5 Nov 2002 12:37:17 -0500 Received: from gnvex001.mmrd.com (gnvex001.mmrd.com [192.168.3.55]) by thorn.mmrd.com (8.11.6/8.11.6) with ESMTP id gA5HY8j24209; Tue, 5 Nov 2002 12:34:08 -0500 Received: from camel.mmrd.com ([172.25.5.213]) by gnvex001.mmrd.com with SMTP (Microsoft Exchange Internet Mail Service Version 5.5.2653.13) id WKD4ZG46; Tue, 5 Nov 2002 11:33:59 -0500 Subject: Re: Logging RAISE statement to a logfile aside from syslog From: Robert Treat To: Ludwig Lim Cc: PostgreSQL Mailing List In-Reply-To: <20021104062930.80372.qmail@web80309.mail.yahoo.com> References: <20021104062930.80372.qmail@web80309.mail.yahoo.com> Content-Type: text/plain Content-Transfer-Encoding: 7bit X-Mailer: Ximian Evolution 1.0.8 Date: 05 Nov 2002 11:34:07 -0500 Message-Id: <1036514047.4558.75.camel@camel> Mime-Version: 1.0 X-Virus-Scanned: by AMaViS new-20020517 X-Archive-Number: 200211/56 X-Sequence-Number: 6244 On Mon, 2002-11-04 at 01:29, Ludwig Lim wrote: > Hi: > > Is there a way of logging the RAISE statements in a > plpgsql function to a logfile (aside from syslog)? I > noticed that all RAISE statments are only logged in > the syslog. > I dont think there is any way to get just the RAISE statements to log somewhere else (short of hacking the db code), though you could generate a file with that information easily with grep. Robert Treat