ALTER_EVENT_TRIGGER(7pg15)
π ALTER EVENT TRIGGER π
okay so real talk β this is the ALTER EVENT TRIGGER page from the PostgreSQL 15.19 Documentation, and it's genuinely such a useful little corner of the manual. Bestie, if you've ever made an event trigger and then been like "hmm, actually I need to tweak that," this is the page for you. Let's get into it π«Ά
β¨ NAME β¨
ALTER_EVENT_TRIGGER β change the definition of an event trigger. that's it, that's the whole vibe. you made one, now you wanna mess with it. iconic behavior honestly π
π¦ SYNOPSIS π¦
ALTER EVENT TRIGGER name DISABLE
ALTER EVENT TRIGGER name ENABLE [ REPLICA | ALWAYS ]
ALTER EVENT TRIGGER name OWNER TO { new_owner | CURRENT_ROLE | CURRENT_USER | SESSION_USER }
ALTER EVENT TRIGGER name RENAME TO new_name
four whole forms, four whole moods. pick your fighter β
πΈ DESCRIPTION πΈ
ALTER EVENT TRIGGER changes properties of an existing event trigger. lowkey that's the entire point β you've already got the trigger, you're just adjusting the vibes β¨
π¨ the fine print, and it's a big one: you must be superuser to alter an event trigger. no superuser, no slay. periodt π
π PARAMETERS π
nameβ the name of an existing trigger to alter. like, the one you already have. not a new one. the existing one πnew_ownerβ the user name of the new owner of the event trigger. handing over the keys, passing the crown πnew_nameβ the new name of the event trigger. a rebrand, a glow-up, a whole new identity π§DISABLE/ENABLE [ REPLICA | ALWAYS ]β these forms configure the firing of event triggers. a disabled trigger is still known to the system, but is not executed when its triggering event occurs. so it's not gone, it's just β¦ resting π. see alsosession_replication_roleβ that's the related knob, go look at it, iykyk π₯
π COMPATIBILITY π
there is no ALTER EVENT TRIGGER statement in the SQL standard. nope. not a thing. this is pure PostgreSQL main character energy, no cap π
π SEE ALSO π
CREATE EVENT TRIGGER(CREATE_EVENT_TRIGGER(7)) β for making one in the first place πDROP EVENT TRIGGER(DROP_EVENT_TRIGGER(7)) β for when it's time to say goodbye π
and that's the whole page bestie, every single detail intact, no facts harmed in the making of this rewrite π
sign-off time: this was PostgreSQL 15.19, dated 2026, and the page is ALTER EVENT TRIGGER(7) β go forth and alter responsibly, you absolute icon ππ
π¦ 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