Re: pg_get_functiondef and overloaded functions

From: Thomas Kellerer <spam_eater(at)gmx(dot)net>
To: pgsql-sql(at)postgresql(dot)org
Subject: Re: pg_get_functiondef and overloaded functions
Date: 2009-10-30 23:46:50
Message-ID: hcftt9$j5a$1@ger.gmane.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-sql

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

In response to

Browse pgsql-sql by date

  From Date Subject
Next Message Bernd Nawothnig 2009-10-31 21:11:06 Re: how to: refer to select list calculations other places in the calculations.
Previous Message Tom Lane 2009-10-30 21:22:17 Re: Function Syntax Help