Re: how to parse an proargtypes array?

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: how to parse an proargtypes array?
Дата
Msg-id 27425.1109949406@sss.pgh.pa.us
обсуждение исходный текст
Ответ на how to parse an proargtypes array?  (b t <qtboyzz@yahoo.com>)
Список pgsql-interfaces
b t <qtboyzz@yahoo.com> writes:
> I'm trying to find out all the argument type that a user-defined function required, I used this query, select
proargtypesfrom pg_proc where proname = 'add_movie'; but it gives me an oidvector array 1043 23 1043 1043 1043 1015
10151015 1182 1015, is there a query to parse this and give me a list of type.
 

Perhaps the regprocedure output converter will help you.  Forget
proargtypes, just cast the function's OID to regprocedure.

If you really want to deal with the individual function argument type
OIDs, regtype would help with converting those to useful text; or see
format_type().
        regards, tom lane


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

Предыдущее
От: David.Jacques@CCRS.NRCan.gc.ca
Дата:
Сообщение: Function for determining column witdhs in libpq ?
Следующее
От: Tom Lane
Дата:
Сообщение: Re: Function for determining column witdhs in libpq ?