On Sat, Aug 08, 2009 at 12:34:03PM -0400, dearsoandso@gmail.com wrote:
> Hi,
>
> I'm trying to get a look at a user defined function that's being run on a
> server. pg_top -E tells me it's encountering a syntax error and I'd like
> to get a look at the function as it is running on the server. I have
> access to the SQL source but there are several version and I don't know
> which one is running now.
>
> How do I go about viewing a user defined function on postgres 8.3?
>
> Any help is appreciated,
>
> robin
Within psql, you can use the \df+ command to get function source.
Alternatively, look in the pg_proc table and the prosrc column.
--
Joshua Tolley / eggyknap
End Point Corporation
http://www.endpoint.com