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 E93C852915 for ; Tue, 19 Jul 2005 12:31:02 -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 57227-10 for ; Tue, 19 Jul 2005 15:30:59 +0000 (GMT) Received: from mail.metronet.co.uk (mail.metronet.co.uk [213.162.97.75]) by svr1.postgresql.org (Postfix) with ESMTP id C3C495285B for ; Tue, 19 Jul 2005 12:30:55 -0300 (ADT) Received: from mainbox.archonet.com (84-51-143-99.archon037.adsl.metronet.co.uk [84.51.143.99]) by smtp.metronet.co.uk (MetroNet Mail) with ESMTP id C06F9414B24; Tue, 19 Jul 2005 16:30:42 +0100 (BST) Received: from localhost (localhost.localdomain [127.0.0.1]) by mainbox.archonet.com (Postfix) with ESMTP id 47CF115EE3; Tue, 19 Jul 2005 16:18:57 +0100 (BST) Received: from mainbox.archonet.com ([127.0.0.1]) by localhost (mainbox [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 10030-07; Tue, 19 Jul 2005 16:18:55 +0100 (BST) Received: from [192.168.1.17] (client17.office.archonet.com [192.168.1.17]) by mainbox.archonet.com (Postfix) with ESMTP id E786D15ED9; Tue, 19 Jul 2005 16:18:54 +0100 (BST) Message-ID: <42DD19DE.60106@archonet.com> Date: Tue, 19 Jul 2005 16:18:54 +0100 From: Richard Huxton User-Agent: Mozilla Thunderbird 1.0.2 (X11/20050317) X-Accept-Language: en-us, en MIME-Version: 1.0 To: Andreas Joseph Krogh Cc: pgsql-sql@postgresql.org Subject: Re: echo/printf function in plpgsql References: <200507191651.28648.andreak@officenet.no> In-Reply-To: <200507191651.28648.andreak@officenet.no> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, hits=0.056 tagged_above=0 required=5 tests=AWL, FORGED_RCVD_HELO X-Spam-Level: X-Archive-Number: 200507/164 X-Sequence-Number: 22142 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). -- Richard Huxton Archonet Ltd