ALTER_EVENT_TRIGGER(7pg14)
β¨ ALTER EVENT TRIGGER β¨
okay so bestie, this is the ALTER EVENT TRIGGER page from the PostgreSQL 14.24 docs, and it's honestly kind of a short one β but it's important, so like, pay attention π
πΈ NAME πΈ
ALTER_EVENT_TRIGGER β change the definition of an event trigger, no cap
π 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
like, four whole forms, pick your fighter π
π¦ DESCRIPTION π¦
ALTER EVENT TRIGGER changes properties of an existing event trigger. that's it, that's the vibe. it doesn't make a new one, it just β¨adjustsβ¨ the one you already have.
π¨ bestie listen to me: you must be superuser to alter an event trigger. like, not "i'm basically an admin" superuser. the actual one. no exceptions, periodt. π₯
π PARAMETERS π
nameβ the name of an existing trigger to alter. you know, the one you're messing with.new_ownerβ the user name of the new owner of the event trigger. she's passing the crown π to someone else.new_nameβ the new name of the event trigger. rebrand era π¦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. it's like, she's still on the roster, she's just not showing up to practice π. see alsosession_replication_role. iykyk.
π COMPATIBILITY π
there is no ALTER EVENT TRIGGER statement in the SQL standard. so like, this is a Postgres original, main character energy only π
β¨
β SEE ALSO β
CREATE EVENT TRIGGER(CREATE_EVENT_TRIGGER(7))DROP EVENT TRIGGER(DROP_EVENT_TRIGGER(7))
the whole trilogy, honestly β read all three π«Ά
and that's the page!! π this was PostgreSQL 14.24 docs, dated 2026 (yes, 2026, she's from the future π), brought to you by the ALTER EVENT TRIGGER(7) manual page. go forth and alter responsibly, bestie πΈπ
π¦ where this page comes from
- opensuse-leap 16.0: postgresql14 14.24-160000.1.1 Β· PostgreSQL
- opensuse-leap 16.0: postgresql14 14.24-160000.1.1 Β· PostgreSQL
- opensuse-leap 16.0: postgresql14 14.24-160000.1.1 Β· PostgreSQL
- opensuse-leap 16.0: postgresql14 14.24-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