Received: from maia.hub.org (maia-2.hub.org [200.46.204.251]) by mail.postgresql.org (Postfix) with ESMTP id 5F2881337B61 for ; Thu, 3 Mar 2011 14:48:04 -0400 (AST) Received: from mail.postgresql.org ([200.46.204.86]) by maia.hub.org (mx1.hub.org [200.46.204.251]) (amavisd-maia, port 10024) with ESMTP id 95653-01 for ; Thu, 3 Mar 2011 18:47:57 +0000 (UTC) X-Greylist: from auto-whitelisted by SQLgrey-1.7.6 Received: from chocolate.ruo3.org (87-194-171-29.bethere.co.uk [87.194.171.29]) by mail.postgresql.org (Postfix) with ESMTP id C55EB1337B54 for ; Thu, 3 Mar 2011 14:47:56 -0400 (AST) Received: from [IPv6:::1] (chocolate.ruo3.org [127.0.0.1]) by chocolate.ruo3.org (Postfix) with ESMTP id 34D6A604AD; Thu, 3 Mar 2011 18:38:09 +0000 (GMT) Message-ID: <4D6FDFED.3070605@richardneill.org> Date: Thu, 03 Mar 2011 18:37:33 +0000 From: Richard Neill User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.2.13) Gecko/20101208 Lightning/1.0b2 Thunderbird/3.1.7 MIME-Version: 1.0 To: Robert Haas CC: Richard Neill , Richard Neill , pgsql-bugs@postgresql.org Subject: Re: BUG #5867: wish: plpgsql print table for debug References: <201102070601.p1761470087214@wwwmaster.postgresql.org> <4D6FCBEC.1060709@richardneill.org> In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=-0.918 tagged_above=-5 required=5 tests=BAYES_00=-1.9, RDNS_DYNAMIC=0.982 X-Spam-Level: X-Archive-Number: 201103/71 X-Sequence-Number: 29581 > Sure it does. You can pass the tuple to RAISE NOTICE easily enough. > It won't have all the same bells and whistles psql would supply, but > it prints out well enough for debugging. Or at least it's never > bothered me. Sorry if I'm being dense, but I can't see how you can pass a tuple; I think raise-notice only lets you pass individual strings/integers. But I don't think we can pass all of them without specifying in advance how many there are....