Goal Find event triggers, which are not associated to a specific schema object.
Type General (Overview of some aspect of the database.)
License MIT License
Data Source system catalog only
SQL Query
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;

Collections

This query belongs to the following collections:

NameDescription
Find problems by overviewQueries 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 .
Categories

This query is classified under the following categories:

NameDescription
Comfortability of database evolutionQueries of this category provide information about the means that influence database evolution.
Triggers and rulesQueries of this category provide information about triggers and rules in a database.