pg.ddx.io  pgsql-sql@postgresql.org mailing list archive  
help / color / mirror / Atom feed
How do I view triggers
2+ messages / 2 participants
[nested] [flat]

* How do I view triggers
@ 2003-02-21 13:24  Graham Vickrage <graham@gpmd.co.uk>
  0 siblings, 1 reply; 2+ messages in thread

From: Graham Vickrage @ 2003-02-21 13:24 UTC (permalink / raw)
  To: pgsql-sql

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






^ permalink  raw  reply  [nested|flat] 2+ messages in thread

* Re: How do I view triggers
@ 2003-02-21 20:44  Chad Thompson <chad@weblinkservices.com>
  parent: Graham Vickrage <graham@gpmd.co.uk>
  0 siblings, 0 replies; 2+ messages in thread

From: Chad Thompson @ 2003-02-21 20:44 UTC (permalink / raw)
  To: Graham Vickrage <graham@gpmd.co.uk>; pgsql-sql

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
> 




^ permalink  raw  reply  [nested|flat] 2+ messages in thread


end of thread, other threads:[~2003-02-21 20:44 UTC | newest]

Thread overview: 2+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2003-02-21 13:24 How do I view triggers Graham Vickrage <graham@gpmd.co.uk>
2003-02-21 20:44 ` Chad Thompson <chad@weblinkservices.com>

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