Received: from maia.hub.org (unknown [200.46.204.183]) by mail.postgresql.org (Postfix) with ESMTP id 79B80642647 for ; Fri, 30 Oct 2009 20:47:17 -0300 (ADT) Received: from mail.postgresql.org ([200.46.204.86]) by maia.hub.org (mx1.hub.org [200.46.204.183]) (amavisd-maia, port 10024) with ESMTP id 98248-07 for ; Fri, 30 Oct 2009 23:47:09 +0000 (UTC) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.6 Received: from lo.gmane.org (lo.gmane.org [80.91.229.12]) by mail.postgresql.org (Postfix) with ESMTP id A4BD5637618 for ; Fri, 30 Oct 2009 20:47:09 -0300 (ADT) Received: from list by lo.gmane.org with local (Exim 4.50) id 1N41BS-0000gM-Ns for pgsql-sql@postgresql.org; Sat, 31 Oct 2009 00:47:06 +0100 Received: from ppp-93-104-182-223.dynamic.mnet-online.de ([93.104.182.223]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sat, 31 Oct 2009 00:47:06 +0100 Received: from spam_eater by ppp-93-104-182-223.dynamic.mnet-online.de with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sat, 31 Oct 2009 00:47:06 +0100 X-Injected-Via-Gmane: http://gmane.org/ To: pgsql-sql@postgresql.org From: Thomas Kellerer Subject: Re: pg_get_functiondef and overloaded functions Date: Sat, 31 Oct 2009 00:46:50 +0100 Lines: 18 Message-ID: References: <1311.1256877892@sss.pgh.pa.us> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-15; format=flowed Content-Transfer-Encoding: 7bit X-Complaints-To: usenet@ger.gmane.org X-Gmane-NNTP-Posting-Host: ppp-93-104-182-223.dynamic.mnet-online.de User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; de; rv:1.8.1.21) Gecko/20090302 Thunderbird/2.0.0.21 Mnenhy/0.7.5.666 In-Reply-To: <1311.1256877892@sss.pgh.pa.us> X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=-0.74 tagged_above=-10 required=5 tests=BAYES_20=-0.74 X-Spam-Level: X-Archive-Number: 200910/151 X-Sequence-Number: 33350 Tom Lane wrote on 30.10.2009 05:44: >> select pg_get_functiondef('foo(int)'::regproc) >> select pg_get_functiondef('foo(int4)'::regproc) >> select pg_get_functiondef('foo(integer)'::regproc) >> but each time I get the error: function "foo(integer)" does not exist >> What am I missing? > > You need to use regprocedure. regproc is mainly for bootstrap purposes > --- it accepts a function name only. > Thanks, works fine. Where would I find a documentation of all those types? The section about pg_get_functiondef (and others) doesn't mention this. Regards Thomas