ALTER_EVENT_TRIGGER(7pg17)
π ALTER EVENT TRIGGER β bestie edition π
ok so you're flipping through the PostgreSQL 17.11 Documentation and you landed on this one β ALTER_EVENT_TRIGGER(7), the glow-up page for event triggers. slay, let's get into it β¨
πΈ NAME πΈ
ALTER_EVENT_TRIGGER β lowkey the whole point of this page: change the definition of an event trigger. that's it, that's the vibe. π
π¦ SYNOPSIS π¦
four ways to do it, bestie, pick your fighter:
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
β¨ DESCRIPTION β¨
ALTER EVENT TRIGGER changes properties of an existing event trigger. simple as that. no cap. π«
π¨ ok important thing before you go wild: you must be superuser to alter an event trigger. like, actually. no workaround, no sneaky trick. superuser energy only, main character privileges only. π
π PARAMETERS π
here's the breakdown, one by one, no skips:
nameβ the name of an existing trigger to alter. you gotta know which one you're touching, bestie, this isn't a guessing game πnew_ownerβ the user name of the new owner of the event trigger. handing over the keys π«Άnew_nameβ the new name of the event trigger. rebrand era πDISABLE/ENABLE [ REPLICA | ALWAYS ]β these forms configure the firing of event triggers. so like, a disabled trigger is still known to the system, it just doesn't get executed when its triggering event occurs. it's still on the roster, just benched. π also go peek atsession_replication_rolewhile you're at it β that's the related lore. π₯
π§ COMPATIBILITY π§
there is no ALTER EVENT TRIGGER statement in the SQL standard. nope. zero. this is a PostgreSQL original, we invented it, we ate πβ¨
π SEE ALSO π
CREATE EVENT TRIGGER(CREATE_EVENT_TRIGGER(7)) β the origin story π¬DROP EVENT TRIGGER(DROP_EVENT_TRIGGER(7)) β the villain arc π
ok that's the whole page, you're officially an event-trigger-altering girlie now, obsessed for you fr fr ππ
sign-off time: this was PostgreSQL 17.11, dated 2026, and the page is ALTER EVENT TRIGGER(7) β catch you on the next one, mwah ππ¦π
π¦ where this page comes from
- opensuse-leap 16.0: postgresql17 17.11-160000.1.1 Β· PostgreSQL
- opensuse-leap 16.0: postgresql17 17.11-160000.1.1 Β· PostgreSQL
- opensuse-leap 16.0: postgresql17 17.11-160000.1.1 Β· PostgreSQL
- opensuse-leap 16.0: postgresql17 17.11-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