X-Original-To: pgsql-sql-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [200.46.204.144]) by svr1.postgresql.org (Postfix) with ESMTP id 2531B52A0C for ; Tue, 19 Jul 2005 17:36:56 -0300 (ADT) Received: from svr1.postgresql.org ([200.46.204.71]) by localhost (av.hub.org [200.46.204.144]) (amavisd-new, port 10024) with ESMTP id 60140-01 for ; Tue, 19 Jul 2005 20:36:52 +0000 (GMT) Received: from krogh.officenet.no (cC30128B2.xdsl.catch.no [195.1.40.178]) by svr1.postgresql.org (Postfix) with ESMTP id 5AD7152A1F for ; Tue, 19 Jul 2005 17:36:49 -0300 (ADT) Received: from krogh.officenet.no (krogh.officenet.no [127.0.0.1]) by krogh.officenet.no (Postfix) with ESMTP id 352D46D94C; Tue, 19 Jul 2005 22:36:49 +0200 (CEST) From: Andreas Joseph Krogh Organization: OfficeNet AS To: pgsql-sql@postgresql.org, Tony Wasson Subject: Re: echo/printf function in plpgsql Date: Tue, 19 Jul 2005 22:36:48 +0200 User-Agent: KMail/1.7.2 References: <200507191651.28648.andreak@officenet.no> <200507191758.05273.andreak@officenet.no> <6d8daee30507191309515f33c4@mail.gmail.com> In-Reply-To: <6d8daee30507191309515f33c4@mail.gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200507192236.48641.andreak@officenet.no> X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, hits=0.05 tagged_above=0 required=5 tests=FORGED_RCVD_HELO X-Spam-Level: X-Archive-Number: 200507/169 X-Sequence-Number: 22147 On Tuesday 19 July 2005 22:09, Tony Wasson wrote: > On 7/19/05, Andreas Joseph Krogh wrote: > > On Tuesday 19 July 2005 17:18, Richard Huxton wrote: > > > Andreas Joseph Krogh wrote: > > > > Hi all! > > > > > > > > Is there a way of echo'ing a string(like "raise notice 'this is id%', > > > > id") from plpgsql? I want to echo/print it to STDOUT 'cause the > > > > notice-mechanism produces too much noise IMH. > > > > > > Your function is running in the backend. You don't have a STDOUT > > > (although you might have redirected STDERR for logging). > > > > I see. Can I make the ouput somehow less verbose? It spits out a lot of > > noise for each "NOTICE": > > You can control the severity messages sent to your client by first > setting client_min_message. > > Try SET client_min_messages = WARNING; Thanks -- AJK