Received: from nghost.vosn.net ([157.238.46.43]) by postgresql.org (8.11.3/8.11.4) with ESMTP id g0UGWjl77142 for ; Wed, 30 Jan 2002 11:32:46 -0500 (EST) (envelope-from arguile@lucentstudios.com) Received: from cpe000094c6dc29.cpe.net.cable.rogers.com ([24.112.104.3] helo=broadswd) by nghost.vosn.net with asmtp (Exim 3.34 #1) id 16Vxdw-0006vY-00 for pgsql-admin@postgresql.org; Wed, 30 Jan 2002 11:31:28 -0500 From: "Arguile" To: Subject: Re: Listing Triggers Date: Wed, 30 Jan 2002 11:30:25 -0500 Message-ID: X-Priority: 3 (Normal) X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook IMO, Build 9.0.2416 (9.0.2910.0) In-Reply-To: <20020130025928.O55884-100000@fw.mccons.net> X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4807.1700 Importance: Normal X-AntiAbuse: This header was added to track abuse, please include it with any abuse report X-AntiAbuse: Primary Hostname - nghost.vosn.net X-AntiAbuse: Original Domain - postgresql.org X-AntiAbuse: Originator/Caller UID/GID - [0 0] / [0 0] X-AntiAbuse: Sender Address Domain - lucentstudios.com X-Archive-Number: 200201/263 X-Sequence-Number: 3144 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';