Re: getting 'full' names of functions?

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: getting 'full' names of functions?
Дата
Msg-id 8331.1236278717@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: getting 'full' names of functions?  (Jan-Peter.Seifert@gmx.de)
Список pgsql-admin
Jan-Peter.Seifert@gmx.de writes:
> Hello raf,
>>> Easier is just
>>> select oid::regprocedure from pg_proc where <whatever>

>> note that this method doesn't produce a complete function
>> signature. the precision and scale of numerics are not
>> included in the output. hopefully, that won't matter for
>> your needs.

> Oh. So functions expecting e.g. numeric(5,2) as argument wouldn't be
listed correctly? Is this going to be fixed then?

No, because it's not broken.  Precision/scale of numerics aren't
relevant to function signatures.  A function can take or return
a numeric, full stop --- it doesn't matter what the precision is.
The same goes for other type modifiers such as varchar maxlength.

            regards, tom lane

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

Предыдущее
От: Jan-Peter.Seifert@gmx.de
Дата:
Сообщение: Re: getting 'full' names of functions?
Следующее
От: Ray Stell
Дата:
Сообщение: Re: standby waiting for what?