Query goal: | Find event triggers, which are not associated to a specific schema object. |
Query type: | General (Overview of some aspect of the database.) |
Query license: | MIT License |
Data source: | system catalog only |
SQL query: | Click on query to copy it
SELECT evtname AS trigger_name, evtevent AS trigger_event, pg_get_functiondef(evtfoid) AS trigger_function_def, CASE WHEN evtenabled='D' THEN 'Disabled' ELSE 'Enabled' END AS trigger_state FROM pg_catalog.pg_event_trigger ORDER BY evtevent, evtname; |
Collection name | Collection description |
---|---|
Find problems by overview | Queries that results point to different aspects of database that might have problems. A human reviewer has to decide based on the results as to whether there are problems or not . |
Category name | Category description |
---|---|
Comfortability of database evolution | Queries of this category provide information about the means that influence database evolution. |
Triggers and rules | Queries of this category provide information about triggers and rules in a database. |