
Development Versions: [devel](https://www.postgresql.org/docs/devel/event-triggers.html "PostgreSQL devel - Chapter 38. Event Triggers")

| Chapter 38. Event Triggers |
| --- |
| [Prev](https://www.postgresql.org/docs/current/trigger-example.html "37.4. A Complete Trigger Example")  | [Up](https://www.postgresql.org/docs/current/server-programming.html "Part V. Server Programming") | Part V. Server Programming | [Home](https://www.postgresql.org/docs/current/index.html "PostgreSQL 18.3 Documentation") |  [Next](https://www.postgresql.org/docs/current/event-trigger-definition.html "38.1. Overview of Event Trigger Behavior") |

* * *

To supplement the trigger mechanism discussed in [Chapter 37](https://www.postgresql.org/docs/current/triggers.html "Chapter 37. Triggers"), PostgreSQL also provides event triggers. Unlike regular triggers, which are attached to a single table and capture only DML events, event triggers are global to a particular database and are capable of capturing DDL events.

Like regular triggers, event triggers can be written in any procedural language that includes event trigger support, or in C, but not in plain SQL.
