DROP_EVENT_TRIGGER(7pg18)

๐Ÿ“ฆ version 18.6, in opensuse-leap 16.0

๐Ÿ’… 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 ๐ŸŽ€๐Ÿซถ๐Ÿ‘‘

๐Ÿ“ฆ where this page comes from