# 51.21. pg\_event\_trigger

The catalog `pg_event_trigger` stores event triggers. See [Chapter 39](https://www.postgresql.org/docs/13/event-triggers.html) for more information.

#### **Table 51.21. `pg_event_trigger` Columns**

| <p>Column Type</p><p>Description</p>                                                                                                                                                                                                                                                                                                                                                                                                     |
| ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| <p><code>oid</code> <code>oid</code></p><p>Row identifier</p>                                                                                                                                                                                                                                                                                                                                                                            |
| <p><code>evtname</code> <code>name</code></p><p>Trigger name (must be unique)</p>                                                                                                                                                                                                                                                                                                                                                        |
| <p><code>evtevent</code> <code>name</code></p><p>Identifies the event for which this trigger fires</p>                                                                                                                                                                                                                                                                                                                                   |
| <p><code>evtowner</code> <code>oid</code> (references <a href="https://www.postgresql.org/docs/13/catalog-pg-authid.html"><code>pg\_authid</code></a>.<code>oid</code>)</p><p>Owner of the event trigger</p>                                                                                                                                                                                                                             |
| <p><code>evtfoid</code> <code>oid</code> (references <a href="https://www.postgresql.org/docs/13/catalog-pg-proc.html"><code>pg\_proc</code></a>.<code>oid</code>)</p><p>The function to be called</p>                                                                                                                                                                                                                                   |
| <p><code>evtenabled</code> <code>char</code></p><p>Controls in which <a href="https://www.postgresql.org/docs/13/runtime-config-client.html#GUC-SESSION-REPLICATION-ROLE">session\_replication\_role</a> modes the event trigger fires. <code>O</code> = trigger fires in “origin” and “local” modes, <code>D</code> = trigger is disabled, <code>R</code> = trigger fires in “replica” mode, <code>A</code> = trigger fires always.</p> |
| <p><code>evttags</code> <code>text\[]</code></p><p>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.</p>                                                                                                                                                                                                                                             |
