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-13 14:38:37
Message-ID: 0AD01C53605506449BA127FB8B99E5E1611461AD@FMSMSX105.amr.corp.intel.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Excellent !
Thank You very much !

-----Original Message-----
From: Albe Laurenz [mailto:laurenz(dot)albe(at)wien(dot)gv(dot)at]
Sent: Wednesday, February 13, 2013 9:30 AM
To: Gauthier, Dave; pgsql-general(at)postgresql(dot)org
Subject: RE: How to get stored procedure args list from metadata tables ?

Dave Gauthier wrote:
> 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.

This information is in the following columns of pg_proc:
proargtypes, proallargtypes, proargmodes, proargnames

For a nice display, use
SELECT pg_get_function_identity_arguments('funcname'::regproc);

Yours,
Laurenz Albe

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Gauthier, Dave 2013-02-13 15:00:18 Re: How to get stored procedure args list from metadata tables ?
Previous Message Albe Laurenz 2013-02-13 14:30:04 Re: How to get stored procedure args list from metadata tables ?