From: Arguile <arguile@lucentstudios.com>
To: pgsql-admin@postgresql.org
Subject: Re: Listing Triggers
Date: Wed, 30 Jan 2002 11:30:25 -0500
Message-ID: <LLENKEMIODLDJNHBEFBOCEDKEBAA.arguile@lucentstudios.com> (raw)
In-Reply-To: <20020130025928.O55884-100000@fw.mccons.net>
Brian McCane wrote:
> How can I list the triggers on a specific table?
Just as I was typing this I noticed Tom already replied. Just incase you
want to know all triggers referencing the table in addition to those on it
(eg. foreign key constraints).
SELECT t.oid, t.*
FROM pg_trigger t, pg_class c
WHERE where c.oid in (t.tgrelid, t.tgconstrrelid)
AND c.relname = 'foo';
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: arguile@lucentstudios.com
Subject: Re: Listing Triggers
In-Reply-To: <LLENKEMIODLDJNHBEFBOCEDKEBAA.arguile@lucentstudios.com>
References: <20020130025928.O55884-100000@fw.mccons.net> <LLENKEMIODLDJNHBEFBOCEDKEBAA.arguile@lucentstudios.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