pg.ddx.io  pgsql-sql@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Achilleus Mantzios <achill@matrix.gatewaynet.com>
To: Ludwig Lim <lud_nowhere_man@yahoo.com>
Cc: PostgreSQL Mailing List <pgsql-sql@postgresql.org>
Subject: Re: Viewing stored procedure code
Date: Thu, 10 Oct 2002 12:01:38 +0300 (EEST)
Message-ID: <Pine.LNX.4.44.0210101155100.28040-100000@matrix.gatewaynet.com> (raw)
In-Reply-To: <20021010072726.75906.qmail@web80303.mail.yahoo.com>

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@matrix.gatewaynet.com
        mantzios@softlab.ece.ntua.gr




view thread (2+ messages)

Message-ID: <Pine.LNX.4.44.0210101155100.28040-100000@matrix.gatewaynet.com>
Permalink:  ../Pine.LNX.4.44.0210101155100.28040-100000@matrix.gatewaynet.com/
Also on:    postgresql.org/message-id/Pine.LNX.4.44.0210101155100.28040-100000@matrix.gatewaynet.com

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients using the --to and --cc options:
  reply via email

  To: pgsql-sql@postgresql.org
  Cc: achill@matrix.gatewaynet.com, lud_nowhere_man@yahoo.com
  Subject: Re: Viewing stored procedure code
  In-Reply-To: <Pine.LNX.4.44.0210101155100.28040-100000@matrix.gatewaynet.com>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox