Re: pg_get_functiondef and overloaded functions

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: pg_get_functiondef and overloaded functions
Дата
Msg-id 1311.1256877892@sss.pgh.pa.us
обсуждение исходный текст
Ответ на pg_get_functiondef and overloaded functions  (Thomas Kellerer <spam_eater@gmx.net>)
Ответы Re: pg_get_functiondef and overloaded functions  (Thomas Kellerer <spam_eater@gmx.net>)
Список pgsql-sql
Thomas Kellerer <spam_eater@gmx.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


В списке pgsql-sql по дате отправления:

Предыдущее
От: Thomas Kellerer
Дата:
Сообщение: pg_get_functiondef and overloaded functions
Следующее
От: Richard Huxton
Дата:
Сообщение: Re: slow count(CASE) query