DROP EVENT TRIGGER
remove an event trigger
English manual coverage begins with PostgreSQL 6.4. Source history and runtime observations have their own recorded version boundaries.
Reading PG 18·Select a recorded version
- anchor
- SQL-DROPEVENTTRIGGER
- file
- sql-dropeventtrigger.html
- lang
- en
- name
- DROP EVENT TRIGGER
- purpose
- remove an event trigger
- purpose zh
- 移除一个事件触发器
- sections same as
- Unknown
- slug
- 18
- synopsis html
- DROP EVENT TRIGGER [ IF EXISTS ] <em class="replaceable"><code>name</code></em> [ CASCADE | RESTRICT ]
- synopsis text
- DROP EVENT TRIGGER [ IF EXISTS ] name [ CASCADE | RESTRICT ]
Syntax
DROP EVENT TRIGGER [ IF EXISTS ] name [ CASCADE | RESTRICT ]Syntax diagrams
Read left to right. Branches are choices, bypasses are optional, loops repeat. Select an underlined parameter to open its rule.
Definition PG 18
DROP EVENT TRIGGER [ IF EXISTS ] name [ CASCADE | RESTRICT ]
Description
DROP EVENT TRIGGER removes an existing event trigger. To execute this command, the current user must be the owner of the event trigger.
Parameters
IF EXISTSDo not throw an error if the event trigger does not exist. A notice is issued in this case.
nameThe name of the event trigger to remove.
CASCADEAutomatically drop objects that depend on the trigger, and in turn all objects that depend on those objects (see Section 5.15).
RESTRICTRefuse to drop the trigger if any objects depend on it. This is the default.
Examples
Destroy the trigger snitch:
DROP EVENT TRIGGER snitch;
Compatibility
There is no DROP EVENT TRIGGER statement in the SQL standard.
See Also
CREATE EVENT TRIGGER, ALTER EVENT TRIGGERCompare versions
Source references
Full definition and evidence JSON
Definition sources
center · PostgreSQL 18 · wiki-repair-20261023:d570778a881f4166fa2e8a9764929a0908a2a825f9bb187d171a4b7632f809d5
Text language: en · wiki-repair-20261023:d570778a881f4166fa2e8a9764929a0908a2a825f9bb187d171a4b7632f809d5