Re: pg_get_functiondef and overloaded functions

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Thomas Kellerer <spam_eater(at)gmx(dot)net>
Cc: pgsql-sql(at)postgresql(dot)org
Subject: Re: pg_get_functiondef and overloaded functions
Date: 2009-10-30 04:44:52
Message-ID: 1311.1256877892@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-sql

Thomas Kellerer <spam_eater(at)gmx(dot)net> writes:
> I tried
> 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.

regards, tom lane

In response to

Responses

Browse pgsql-sql by date

  From Date Subject
Next Message Richard Huxton 2009-10-30 08:40:36 Re: slow count(CASE) query
Previous Message Thomas Kellerer 2009-10-29 23:12:26 pg_get_functiondef and overloaded functions