Re: How can I display the contents of a function?

From: Guillaume Lelarge <guillaume(at)lelarge(dot)info>
To: Thom Brown <thombrown(at)gmail(dot)com>
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: How can I display the contents of a function?
Date: 2009-01-19 12:53:56
Message-ID: 497477E4.4080104@lelarge.info
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Thom Brown a écrit :
> I would like to see what's in a function. I can do this if I use pgAdmin
> III just by clicking on the function, and it appears in the SQL pane
> opposite. But how is this done? Is there a command like DESCRIBE FUNCTION
> logging.do_stuff; ? And if possible, doing this without psql.
>

pgAdmin looks at the prosrc column of the pg_proc catalog. You can do
the same with this query:

SELECT prosrc FROM pg_proc WHERE proname='your function name here';

Regards.

--
Guillaume.
http://www.postgresqlfr.org
http://dalibo.com

In response to

Browse pgsql-general by date

  From Date Subject
Next Message A. Kretschmer 2009-01-19 12:56:23 Re: How can I display the contents of a function?
Previous Message Thom Brown 2009-01-19 12:41:25 How can I display the contents of a function?