Skip site navigation (1) Skip section navigation (2)

list user created triggers

From: "sathiya psql" <sathiya(dot)psql(at)gmail(dot)com>
To: pgsql-admin(at)postgresql(dot)org
Subject: list user created triggers
Date: 2008-03-11 13:44:19
Message-ID: f966c2ee0803110644j691f879ep67c86e6030d739ab@mail.gmail.com (view raw or flat)
Thread:
Lists: pgsql-admin
hi,

how to find trigger names in my database ?

using psql 7.4

the following query shows system triggers, i want only to list the
triggers created by me

select relname, tgname, tgtype, proname, prosrc, tgisconstraint,
tgconstrname, tgconstrrelid, tgdeferrable, tginitdeferred, tgnargs,
tgattr, tgargs from (pg_trigger join pg_class on tgrelid=pg_class.oid)
join pg_proc on (tgfoid=pg_proc.oid);

pgsql-admin by date

Next:From: Julio LeyvaDate: 2008-03-11 14:15:22
Subject: Re: helpppppppppppppppp??????????
Previous:From: Kieran McCuskerDate: 2008-03-11 12:54:41
Subject: Perform an action on schema drop

Privacy Policy | About PostgreSQL
Copyright © 1996-2014 The PostgreSQL Global Development Group