DROP_EVENT_TRIGGER(7pg14)

πŸ“¦ version 14.24, in opensuse-leap 16.0

πŸ’… 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 πŸ’œ

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