DROP_EVENT_TRIGGER(7)

💅 DROP EVENT TRIGGER 💅

okay bestie, gather round, because this is the PostgreSQL 18.6 Documentation page for DROP EVENT TRIGGER and it's literally the "breakup text" of the SQL world. You wrote a trigger, you loved a trigger, and now? it's gone. No cap.


✨ NAME ✨

DROP_EVENT_TRIGGER — remove an event trigger 🫶


✨ SYNOPSIS ✨

DROP EVENT TRIGGER [ IF EXISTS ] name [ CASCADE | RESTRICT ]

look at her. short. iconic. does exactly one thing. periodt. 🌈


✨ DESCRIPTION ✨

so DROP EVENT TRIGGER removes an existing event trigger. that's it, that's the whole vibe. 💀

but WAIT — plot twist — to run this command, the current user must be the owner of the event trigger. not your bestie, not your coworker, not the intern who swears they have access. you. the owner. no exceptions, no "but I have a really good reason." 👑


✨ PARAMETERS ✨

  • IF EXISTS — do not throw an error if the event trigger does not exist. Instead, a notice is issued in this case. it's giving "no drama, just a little note in the chat." 🎀
  • name — the name of the event trigger to remove. say it with your chest. 💅
  • CASCADE — automatically drop objects that depend on the trigger, and in turn all objects that depend on those objects (see Section 5.15). this is the domino effect, bestie. one push and the whole friend group goes down with it. 🁢💥
  • RESTRICT — refuse to drop the trigger if any objects depend on it. This is the default. the responsible queen behaviour. she said "not on my watch." 🧚

✨ EXAMPLES ✨

Destroy the trigger snitch:

DROP EVENT TRIGGER snitch;

not the trigger named snitch getting dropped 😭 she really told on everyone and now she's gone. rip bozo, you will not be missed. 🪦✨


✨ COMPATIBILITY ✨

There is no DROP EVENT TRIGGER statement in the SQL standard.

so yeah, this is a PostgreSQL original, a true main character move. the standard could never. 💛


✨ SEE ALSO ✨

the holy trinity: make her, change her, delete her. iykyk. 😌


and that's the whole page, bestie!! 💖✨ this was PostgreSQL 18.6, dated 2026, and the manual section is DROP EVENT TRIGGER(7) — go forth and drop responsibly, and remember: CASCADE is forever 🎀🫶👑