DROP_EVENT_TRIGGER(7pg14)
π DROP EVENT TRIGGER π
okay so this is the DROP EVENT TRIGGER page straight out of the PostgreSQL 14.24 Documentation bestie, and it's genuinely one of the shorter ones so we can absolutely get through it together π«Ά
πΈ NAME πΈ
DROP_EVENT_TRIGGER β remove an event trigger. that's it, that's the whole vibe. bye bye trigger π
β¨ SYNOPSIS β¨
DROP EVENT TRIGGER [ IF EXISTS ] name [ CASCADE | RESTRICT ]
look at her. so clean. so iconic. no notes π
π¦ DESCRIPTION π¦
DROP EVENT TRIGGER removes an existing event trigger. lowkey the whole point of the command ngl.
but here's the catch bestie β to execute this command, the current user must be the owner of the event trigger. no ownership, no dropping. that's the rules π
π PARAMETERS π
IF EXISTSβ Do not throw an error if the event trigger does not exist. A notice is issued in this case. like, it's giving "no drama, we move" energy πnameβ The name of the event trigger to remove. literally just the name, girl, that's it β¨CASCADEβ Automatically drop objects that depend on the trigger, and in turn all objects that depend on those objects (see Section 5.14). it's giving chain reaction, main character energy, everything comes down with it π₯RESTRICTβ Refuse to drop the trigger if any objects depend on it. This is the default. she's cautious, she's careful, she's the responsible friend π§
π EXAMPLES π
Destroy the trigger snitch:
DROP EVENT TRIGGER snitch;
not the snitch getting obliterated ππ honestly deserved. periodt.
π COMPATIBILITY π
There is no DROP EVENT TRIGGER statement in the SQL standard.
ngl that's kinda the whole story β the SQL standard simply does not have her. she's built different, a PostgreSQL original π¦
π SEE ALSO π
CREATE EVENT TRIGGER(CREATE_EVENT_TRIGGER(7))ALTER EVENT TRIGGER(ALTER_EVENT_TRIGGER(7))
like the full trilogy fr fr β make her, change her, drop her π β¨
and that's the page!! brought to you by PostgreSQL 14.24, dated 2026, DROP EVENT TRIGGER(7) β go forth and drop responsibly bestie π«ΆππΈ
π¦ where this page comes from
- opensuse-leap 16.0: postgresql14 14.24-160000.1.1 Β· PostgreSQL
- opensuse-leap 16.0: postgresql14 14.24-160000.1.1 Β· PostgreSQL
- opensuse-leap 16.0: postgresql14 14.24-160000.1.1 Β· PostgreSQL
- opensuse-leap 16.0: postgresql14 14.24-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