Re: getting function argument names from psql? - Mailing list pgsql-general

From Merlin Moncure
Subject Re: getting function argument names from psql?
Date
Msg-id b42b73150607130622n344b7d48o183ebffb98b2137e@mail.gmail.com
Whole thread Raw
In response to Re: getting function argument names from psql?  (David Fetter <david@fetter.org>)
Responses Re: getting function argument names from psql?  (David Fetter <david@fetter.org>)
List pgsql-general
On 7/13/06, David Fetter <david@fetter.org> wrote:
> On Wed, Jul 12, 2006 at 11:37:04PM -0400, Tom Lane wrote:
> > > select oid::regprocedure from pg_proc where proname like 'your
> > > name here';
> >
> > Nope, because regprocedureout doesn't include argument names (nor
> > modes).  I think the best way ATM is to look directly at
> > pg_proc.proargnames :-(

whoop! misread it :)

> Back when, I submitted a psql patch to get the input names along with
> their types.  Shall I dig up that code this weekend?

that would be great, although is there any concern about backwards
compatibility of regprocedure cast? would it be safer to make a new
cast?  also, does your patch account for in/out?

merlin

pgsql-general by date:

Previous
From: "Merlin Moncure"
Date:
Subject: Re: Performance problem with query
Next
From: David Fetter
Date:
Subject: Re: getting function argument names from psql?