The list of all the queries

All event triggers

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;

Collections where the query belongs to

Collection nameCollection description
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 where the query belongs to

Category nameCategory description
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.

The list of all the queries