Is that possible to show all triggers enabled status(true/false) within a schema by an SQL query?
About how to query trigger enabled status
Collapse
X
-
Query the pg_trigger table and look into tgenabled column.
See here
To look for a trigger defined on the specific schema you should join pg_trigger with pg_class (join on tgrelid=relfile node) and with pg_tables (join on relname=tablena me) and check the value of schemaname.
Code:select pg_trigger.* from pg_trigger,pg_class,pg_tables where tgrelid=relfilenode and relname=tablename and tableschema=<THE SCHEMA NAME>
Comment