Re: How to view the code in a function??

From: Ashley Clark <aclark(at)ghoti(dot)org>
To: "'pgsql-general(at)postgresql(dot)org'" <pgsql-general(at)postgresql(dot)org>
Subject: Re: How to view the code in a function??
Date: 2000-11-28 22:59:16
Message-ID: 20001128165916.A4047@ghoti.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

* Callis, Adam in "[GENERAL] How to view the code in a function??"
* dated 2000/11/28 14:43 wrote:

> Hello,

Hi,

> I am sure someone probably knows this, I have used the \d tablename
> quite a lot lately, but I was wondering how to view the code in a
> function. Is there a way to get the definition?

Try this select statement:

SELECT pg_proc.proname, pg_proc.prosrc
FROM pg_proc, pg_user
WHERE ((pg_proc.proowner = pg_user.usesysid) AND
(pg_user.usename = 'username'::name));

This will return the function names and source to functions defined by
user specified in username.

--
shaky recall

In response to

Browse pgsql-general by date

  From Date Subject
Next Message shawn everett 2000-11-28 23:03:57 Solved: Is this possible or am I on drugs :)
Previous Message GH 2000-11-28 22:41:20 Re: How to view the code in a function??