How can I retrieve an info about function arguments ?
How can I retrieve an info about function arguments ?
От:
"Zuev Dmitry" <envoy1@chat.ru>
Дата:
Hello All Consider a function: create function f(varchar(10), decimal(10,1)) returns integer as 'select 1;' language sql; I need to retreive full set of info about argument and return types (for variable length too). How I can get it from system catalog ? For tables columns I can gen an info from pg_attribute table. But in case of function no entry are present there. pg_proc has no info about length of variable length types. __________________________________________________________________ Dmitry Vitalievitch ICQ#: 11000008 Current ICQ status: + More ways to contact me __________________________________________________________________
Re: How can I retrieve an info about function arguments ?
От:
Bhuvan A <bhuvansql@myrealbox.com>
Дата:
> I need to retreive full set of info about argument and return types (for > variable length too). test_db=>\df+ my_func will serve your need :( > How I can get it from system catalog ? pg_proc.pronargs -- count of arguments pg_proc.proargtypes -- oid(s) of pg_type for appropriate arguments regards, bhuvaneswaran