Re: Show triggers in psql? - Mailing list pgsql-general

From Stephan Szabo
Subject Re: Show triggers in psql?
Date
Msg-id Pine.BSF.4.10.10009140858080.28013-100000@megazone23.bigpanda.com
Whole thread Raw
In response to Show triggers in psql?  ("Bryan Field-Elliot" <bryan@netmeme.org>)
Responses Upgrading from 6.3.2 to 7.0.2
List pgsql-general
You can get a list of all triggers in the system
as
select * from pg_trigger;

You can get the source for a PL function a trigger
calls with:
select prosrc from pg_trigger,pg_proc where
 pg_proc.oid=pg_trigger.tgfoid
 and pg_trigger.tgname = '<name>'

[Note, in the case of C functions, I think this
returns the name of the function.]


Stephan Szabo
sszabo@bigpanda.com

On Thu, 14 Sep 2000, Bryan Field-Elliot wrote:

> Forgive me if I am missing the obvious, but can someone please tell me how
> to show a list of triggers, or the code in a specific trigger, via the pgsql
> utility?
>
> Thank you,
> Bryan
>


pgsql-general by date:

Previous
From: "Bryan White"
Date:
Subject: Corrupt Table
Next
From: Richard Poole
Date:
Subject: "initdb -t" ate my baby