Thread: How do I view triggers

How do I view triggers

From
"Graham Vickrage"
Date:
Hi All, 

I am slightly confused as to how I view what triggers I have on a
certain table.

select * from pg_trigger

doesn't show me the trigger I have just created, but its definitely
there because when I try and create it, it gives an error that it
already exists.

TIA

Graham





Re: How do I view triggers

From
"Chad Thompson"
Date:
select * from pg_triggers where tgname = 'my_trigger_name';

works great in 7.3.  What version are you using?

Thanks
Chad
----- Original Message ----- 
From: "Graham Vickrage" <graham@gpmd.co.uk>
To: <pgsql-sql@postgresql.org>
Sent: Friday, February 21, 2003 6:24 AM
Subject: [SQL] How do I view triggers


> Hi All, 
> 
> I am slightly confused as to how I view what triggers I have on a
> certain table.
> 
> select * from pg_trigger
> 
> doesn't show me the trigger I have just created, but its definitely
> there because when I try and create it, it gives an error that it
> already exists.
> 
> TIA
> 
> Graham
> 
> 
> 
> 
> ---------------------------(end of broadcast)---------------------------
> TIP 3: if posting/reading through Usenet, please send an appropriate
> subscribe-nomail command to majordomo@postgresql.org so that your
> message can get through to the mailing list cleanly
>