Re: list user created triggers - Mailing list pgsql-performance

From sathiya psql
Subject Re: list user created triggers
Date
Msg-id f966c2ee0803112217j4fe05f9axf84da7dc9b598d5d@mail.gmail.com
Whole thread Raw
In response to Re: list user created triggers  ("sathiya psql" <sathiya.psql@gmail.com>)
List pgsql-performance
select usename,relname, tgname, tgtype, proname, prosrc, tgisconstraint,
tgconstrname, tgconstrrelid, tgdeferrable, tginitdeferred, tgnargs,
tgattr, tgargs from (pg_trigger join pg_class c on tgrelid=c.oid )
join pg_proc on (tgfoid=pg_proc.oid) join pg_user pu on c.relowner=pu.usesysid where pu.usename='YOURUSERNAME';


yes i got the answer by this query..

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) where tgname not ilike '%constraint%' and tgname not ilike 'pg%';


---- the query which you had given shown the implicit triggers which is created for maintaining the constraints..

-- so the query which i had given will show the user created triggers...

THANKS

pgsql-performance by date:

Previous
From: "sathiya psql"
Date:
Subject: Re: list user created triggers
Next
From: "sathiya psql"
Date:
Subject: migration of 7.4 to 8.1