ALTER_EVENT_TRIGGER(7pg18)
๐ ALTER EVENT TRIGGER ๐
okay bestie, so this one lives in the PostgreSQL 18.6 Documentation and it's called ALTER_EVENT_TRIGGER โ yes the manual page name has underscores, that's just how the docs do, iykyk. It's all about changing the definition of an event trigger. Let's get into it ๐
โจ NAME โจ
ALTER_EVENT_TRIGGER โ change the definition of an event trigger
๐ธ 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
๐ฆ DESCRIPTION ๐ฆ
So ALTER EVENT TRIGGER changes properties of an existing event trigger. That's it, that's the whole job. Lowkey iconic for how simple it is ๐
๐จ but listen. You must be superuser to alter an event trigger. No superuser, no vibes. Periodt.
๐ PARAMETERS ๐
nameโ the name of an existing trigger to alter. Gotta name it, bestie, we can't just point at vibes.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. Glow-up via rename, slay.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 โ like, it's still in the group chat, it's just on mute ๐. See alsosession_replication_role.
๐ COMPATIBILITY ๐
ngl there is no ALTER EVENT TRIGGER statement in the SQL standard. fr fr. It's a PostgreSQL original, main character energy only โจ
๐ SEE ALSO ๐
CREATE EVENT TRIGGER(CREATE_EVENT_TRIGGER(7))DROP EVENT TRIGGER(DROP_EVENT_TRIGGER(7))
and that's the whole page, bestie!! ๐ซถ this one shipped in PostgreSQL 18.6 and the docs are dated 2026, and the page signs off as ALTER EVENT TRIGGER(7) โ mwah, go alter something, but like, responsibly ๐๐๐ธ
๐ฆ where this page comes from
- opensuse-leap 16.0: postgresql18 18.6-160000.1.1 ยท PostgreSQL
- opensuse-leap 16.0: postgresql18 18.6-160000.1.1 ยท PostgreSQL
- opensuse-leap 16.0: postgresql18 18.6-160000.1.1 ยท PostgreSQL
- opensuse-leap 16.0: postgresql18 18.6-160000.1.1 ยท PostgreSQL
- ๐ girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms