Re: Viewing stored procedure code

From: Achilleus Mantzios <achill(at)matrix(dot)gatewaynet(dot)com>
To: Ludwig Lim <lud_nowhere_man(at)yahoo(dot)com>
Cc: PostgreSQL Mailing List <pgsql-sql(at)postgresql(dot)org>
Subject: Re: Viewing stored procedure code
Date: 2002-10-10 09:01:38
Message-ID: Pine.LNX.4.44.0210101155100.28040-100000@matrix.gatewaynet.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-sql

On Thu, 10 Oct 2002, Ludwig Lim wrote:

> Hi :
>
> 1) How do I view the body of a stored procedure in
> psql?

SELECT prosrc from pg_proc where proname = 'your pl/pgsql procedure name';

>
> 2) How do I know get the corresponding stored
> procedure of a particular trigger in psql?
>

SELECT t.tgname,f.proname from pg_trigger t,pg_proc f where t.tgname =
'your trigger name' and t.tgfoid = f.oid;

> thanks in advance,
>
> ludwig.
>
> __________________________________________________
> Do you Yahoo!?
> New DSL Internet Access from SBC & Yahoo!
> http://sbc.yahoo.com
>
> ---------------------------(end of broadcast)---------------------------
> TIP 6: Have you searched our list archives?
>
> http://archives.postgresql.org
>

==================================================================
Achilleus Mantzios
S/W Engineer
IT dept
Dynacom Tankers Mngmt
Nikis 4, Glyfada
Athens 16610
Greece
tel: +30-10-8981112
fax: +30-10-8981877
email: achill(at)matrix(dot)gatewaynet(dot)com
mantzios(at)softlab(dot)ece(dot)ntua(dot)gr

In response to

Browse pgsql-sql by date

  From Date Subject
Next Message Christoph Haller 2002-10-10 09:11:00 Re: SQL Error
Previous Message Ludwig Lim 2002-10-10 07:27:26 Viewing stored procedure code