ALTER_EVENT_TRIGGER(7pg18)

๐Ÿ“ฆ version 18.6, in opensuse-leap 16.0

๐Ÿ’– 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 also session_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 ๐Ÿ’œ


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