Re: viewing user defined functions

From: Joshua Tolley <eggyknap(at)gmail(dot)com>
To: dearsoandso(at)gmail(dot)com
Cc: pgsql-novice(at)postgresql(dot)org
Subject: Re: viewing user defined functions
Date: 2009-08-08 21:23:40
Message-ID: 20090808212340.GB24450@eddie
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-novice

On Sat, Aug 08, 2009 at 12:34:03PM -0400, dearsoandso(at)gmail(dot)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

In response to

Browse pgsql-novice by date

  From Date Subject
Next Message Andreas Kretschmer 2009-08-09 08:23:56 Re: viewing user defined functions
Previous Message dearsoandso 2009-08-08 16:34:03 viewing user defined functions