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 97892529AE for ; Tue, 19 Jul 2005 17:10:11 -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 50286-09 for ; Tue, 19 Jul 2005 20:10:00 +0000 (GMT) Received: from wproxy.gmail.com (wproxy.gmail.com [64.233.184.196]) by svr1.postgresql.org (Postfix) with ESMTP id 19B4E52A73 for ; Tue, 19 Jul 2005 17:09:59 -0300 (ADT) Received: by wproxy.gmail.com with SMTP id 68so1306132wra for ; Tue, 19 Jul 2005 13:10:01 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:reply-to:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=b4y51PUzO3behq67PuYoKo/s6sgDNGGGar0pYE9JZllz+HdewJJRudRIIDzTVZaFnTdgVkLdBD6RfZS3DwYE5qxyMA6TR6/3eEcr8n1a2MdmSeGyXr+fl0gzcAmk4JIZsylpxof/o5yFZ7FYcIh/zW3zwjrupp+dzV9TZxR3h2Y= Received: by 10.54.137.17 with SMTP id k17mr875139wrd; Tue, 19 Jul 2005 13:09:26 -0700 (PDT) Received: by 10.54.65.20 with HTTP; Tue, 19 Jul 2005 13:09:26 -0700 (PDT) Message-ID: <6d8daee30507191309515f33c4@mail.gmail.com> Date: Tue, 19 Jul 2005 13:09:26 -0700 From: Tony Wasson Reply-To: Tony Wasson To: Andreas Joseph Krogh Subject: Re: echo/printf function in plpgsql Cc: pgsql-sql@postgresql.org In-Reply-To: <200507191758.05273.andreak@officenet.no> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline References: <200507191651.28648.andreak@officenet.no> <42DD19DE.60106@archonet.com> <200507191758.05273.andreak@officenet.no> X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, hits=0.142 tagged_above=0 required=5 tests=AWL, RCVD_BY_IP X-Spam-Level: X-Archive-Number: 200507/168 X-Sequence-Number: 22146 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). >=20 > I see. Can I make the ouput somehow less verbose? It spits out a lot of n= oise > for each "NOTICE": You can control the severity messages sent to your client by first setting client_min_message. Try SET client_min_messages =3D WARNING; http://www.postgresql.org/docs/8.0/interactive/runtime-config.html Tony