Summary
The catalog pg_event_trigger stores event triggers. See event_triggers for more information.
(Description quoted from the official PostgreSQL documentation.)
Columns
The pg_event_trigger system catalog exposes the following columns (names, types and descriptions are taken verbatim from the PostgreSQL documentation):
oidoid
Row identifierevtnamename
Trigger name (must be unique)evteventname
Identifies the event for which this trigger firesevtowneroidreferencespg_authid.oid
Owner of the event triggerevtfoidoidreferencespg_proc.oid
The function to be calledevtenabledchar
Controls in which session_replication_role modes the event trigger fires. O = trigger fires in “origin” and “local” modes, D = trigger is disabled, R = trigger fires in “replica” mode, A = trigger fires always.evttagstext[]
Command tags for which this trigger will fire. If NULL, the firing of this trigger is not restricted on the basis of the command tag.
Related catalogs
This object references the following other system catalogs:
Version applicability
Present in PostgreSQL 17, 18, 19 (verified against each release’s documentation). This is a long-standing system object that also exists in earlier PostgreSQL releases.
Related & references
Reference: PostgreSQL documentation — pg_event_trigger.