Re: How to get stored procedure args list from metadata tables ?

From: "Gauthier, Dave" <dave(dot)gauthier(at)intel(dot)com>
To: "pgsql-general(at)postgresql(dot)org" <pgsql-general(at)postgresql(dot)org>
Subject: Re: How to get stored procedure args list from metadata tables ?
Date: 2013-02-15 16:10:42
Message-ID: 0AD01C53605506449BA127FB8B99E5E161146DE9@FMSMSX105.amr.corp.intel.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Is there anything like this soln for v8.3.4 ?
I know, I know, just upgrade. But its out of my hands.

-----Original Message-----
From: Pavel Stehule [mailto:pavel(dot)stehule(at)gmail(dot)com]
Sent: Wednesday, February 13, 2013 9:24 AM
To: Gauthier, Dave
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: [GENERAL] How to get stored procedure args list from metadata tables ?

Hello

2013/2/13 Gauthier, Dave <dave(dot)gauthier(at)intel(dot)com>:
> Hi:
>
>
>
> Looking for a table or view which contains the list of arguments that
> are passed to a stored procedure. Doesn't seem to be in
> pg_proc.prosrc or other pg_proc columns.
>

It is in pg_proc - argument's description is stored in combination of
fields: pronargs, pronargdefaults, proargtypes, proallargtypes, proargmodes, proargnames, proargdefaults

system function pg_get_function_arguments can returns usual description

postgres=# select pg_get_function_arguments('check_form_rodne_cislo'::regproc);
pg_get_function_arguments
────────────────────────────
character varying, boolean
(1 row)

regards

Pavel Stehule

>
>
> Thanks in Advance for any help.

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Jeff Janes 2013-02-15 17:19:04 Re: pg_upgrade
Previous Message mustachebrownbear 2013-02-15 16:04:08 Re: How to create trigger if it does not exist