Re: Listing Triggers

From: "Arguile" <arguile(at)lucentstudios(dot)com>
To: <pgsql-admin(at)postgresql(dot)org>
Subject: Re: Listing Triggers
Date: 2002-01-30 16:30:25
Message-ID: LLENKEMIODLDJNHBEFBOCEDKEBAA.arguile@lucentstudios.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-admin pgsql-sql

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';

In response to

Responses

Browse pgsql-admin by date

  From Date Subject
Next Message Oleg Bartunov 2002-01-30 17:21:00 postgresql under Windows is slow
Previous Message Tom Lane 2002-01-30 15:57:47 Re: Listing Triggers

Browse pgsql-sql by date

  From Date Subject
Next Message Brian McCane 2002-01-30 18:00:13 Re: Listing Triggers
Previous Message Tom Lane 2002-01-30 15:57:47 Re: Listing Triggers