Guest User

Untitled

a guest
Aug 19th, 2018
74
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.41 KB | None | 0 0
  1.  
  2. select nspname as Schemaname,relname as Tablename, tgname as Triggername,case
  3. when tgenabled='O' then 'Enabled' else 'Disabled' end as Trigger_Enabled,
  4. proname as trigerfunctionname from (pg_trigger join pg_class on
  5. tgrelid=pg_class.oid) join pg_proc on (tgfoid=pg_proc.oid) join pg_namespace m
  6. on m.oid=relnamespace
  7. where tgtype not in (5,9,17) and nspname not in
  8. ('pg_catalog','information_schema') order by 1,2;
Add Comment
Please, Sign In to add comment