DROP_EVENT_TRIGGER(7pg15)
β¨ NAME β¨
Okay so this is the PostgreSQL 15.19 docs page for DROP EVENT TRIGGER(7), and the main-character command here is DROP_EVENT_TRIGGER β it removes an event trigger. Periodt. π
πΈ SYNOPSIS πΈ
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. No cap β owner vibes only. π
π PARAMETERS π
IF EXISTSβ do not throw an error if the event trigger does not exist. A notice is issued in this case. So itβs like, βbestie, it wasnβt there, but weβre not crashing over it.β π«Άnameβ the name of the event trigger to remove. Simple. Iconic. β¨CASCADEβ automatically drop objects that depend on the trigger, and in turn all objects that depend on those objects (see Section 5.14). This one goes all the way down the dependency chain, so yeah, highkey powerful. π₯RESTRICTβ refuse to drop the trigger if any objects depend on it. This is the default. Safe and sound, lowkey the responsible queen. π‘οΈ
π¦ EXAMPLES π¦
Destroy the trigger snitch:
DROP EVENT TRIGGER snitch;
Not the snitch getting dropped ππ β but yes, thatβs literally the example.
π COMPATIBILITY π
There is no DROP EVENT TRIGGER statement in the SQL standard. So this is very much a PostgreSQL-specific slay. π«
π SEE ALSO π
CREATE EVENT TRIGGER(CREATE_EVENT_TRIGGER(7))ALTER EVENT TRIGGER(ALTER_EVENT_TRIGGER(7))
π Thatβs the whole page, bestie β brought to you by PostgreSQL 15.19, dated 2026, and filed under DROP EVENT TRIGGER(7). Mwah! π
π¦ where this page comes from
- opensuse-leap 16.0: postgresql15 15.19-160000.1.1 Β· PostgreSQL
- opensuse-leap 16.0: postgresql15 15.19-160000.1.1 Β· PostgreSQL
- opensuse-leap 16.0: postgresql15 15.19-160000.1.1 Β· PostgreSQL
- opensuse-leap 16.0: postgresql15 15.19-160000.1.1 Β· PostgreSQL
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms