pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Joe Conway <mail@joeconway.com>
To: Raymond Chui <raymond.chui@noaa.gov>
Cc: pgsql-general@postgresql.org
Cc: pgsql-admin@postgresql.org
Subject: Re: [GENERAL] Which trigger execute which function?
Date: Mon, 04 Mar 2002 09:28:35 -0800
Message-ID: <3C83AEC3.8040106@joeconway.com> (raw)
References: <3C7CFBEF.58125413@noaa.gov>

Raymond Chui wrote:
> Previous DBA create a lot of triggers and functions without
> documentation like:
> 
> CREATE TRIGGER trigger_name [BEFORE | AFTER] event ON table_name
> FOR EACH ROW EXECUTE PROCEDURE function_name();
> 
> Now he is gone. I couldn't find his PL/PGSQL source codes!
> 
> I can do
> 
> SELECT * FROM pg_proc;
> SELECT * FROM pg_trigger;
> 
> to list all the name of triggers and functions. But I don't know which
> trigger
> execute which function. How do I find out that?
> 
> Our USENET new server (NNTP) doesn't have comp.databases.postgresql.*
> news groups. Therefore, please cc: a copy to me if you reply.
> Thank Q very much in advance!
> 

You could use "pg_dump -s > mydb.dmp" to dump the database schema. Then 
open mydb.dmp in a text editor. I think this will show you all the 
details you need.

HTH,

Joe





view thread (4+ messages)

Message-ID: <3C83AEC3.8040106@joeconway.com>
Permalink:  ../3C83AEC3.8040106@joeconway.com/
Also on:    postgresql.org/message-id/3C83AEC3.8040106@joeconway.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 from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-admin@postgresql.org
  Cc: mail@joeconway.com, raymond.chui@noaa.gov, pgsql-general@postgresql.org
  Subject: Re: [GENERAL] Which trigger execute which function?
  In-Reply-To: <3C83AEC3.8040106@joeconway.com>
  References: <3C7CFBEF.58125413@noaa.gov> <3C83AEC3.8040106@joeconway.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