Re: viewing user defined functions - Mailing list pgsql-novice

From Joshua Tolley
Subject Re: viewing user defined functions
Date
Msg-id 20090808212340.GB24450@eddie
Whole thread Raw
In response to viewing user defined functions  (dearsoandso@gmail.com)
List pgsql-novice
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

Attachment

pgsql-novice by date:

Previous
From: dearsoandso@gmail.com
Date:
Subject: viewing user defined functions
Next
From: Andreas Kretschmer
Date:
Subject: Re: viewing user defined functions