ALTER_EVENT_TRIGGER(7pg13)
β¨ ALTER EVENT TRIGGER β¨
okay so bestie, this is the ALTER EVENT TRIGGER page from the PostgreSQL 13.23 Documentation β yes it's a 7 manpage, yes we're reading it for fun, and yes it's gonna be iconic π
πΈ NAME πΈ
ALTER_EVENT_TRIGGER β literally the move where you change the definition of an event trigger. that's it. that's the whole vibe π
π¦ SYNOPSIS π¦
ALTER EVENT TRIGGER name DISABLE
ALTER EVENT TRIGGER name ENABLE [ REPLICA | ALWAYS ]
ALTER EVENT TRIGGER name OWNER TO { new_owner | CURRENT_USER | SESSION_USER }
ALTER EVENT TRIGGER name RENAME TO new_name
look at her go π four whole forms, all correct, all copied exactly, no cap β¨
π DESCRIPTION π
ALTER EVENT TRIGGER changes properties of an existing event trigger. that's the whole plot. you point it at a trigger that already exists and you're like "bestie, we're doing something different now" π«Ά
π¨ important vibe check: you must be superuser to alter an event trigger. like, actual superuser. no shortcuts, no workarounds, no "but my friend saidβ". superuser. periodt π
π PARAMETERS π
nameβ the name of an existing trigger to alter. the one you're picking out of the lineup πnew_ownerβ the user name of the new owner of the event trigger. hand her the keys, she runs the place now π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. like she's still on the group chat, she's just not replying π also go peek atsession_replication_rolewhile you're at it, it's related iykyk π
π COMPATIBILITY π
there is no ALTER EVENT TRIGGER statement in the SQL standard. none. zero. she's built different, she's a PostgreSQL original, not that we're bragging πβ¨
π§ 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 giving "we need to talk" π
and that's the page, bestie!! go forth and alter responsibly πΈπ
sign-off note: this wasPostgreSQL 13.23, dated2025, and the header/footer both sayALTER EVENT TRIGGER(7)β consider them mentioned, consider us obsessed π«Άβ
π¦ where this page comes from
- opensuse-leap 16.0: postgresql13 13.23-160000.1.1 Β· PostgreSQL
- opensuse-leap 16.0: postgresql13 13.23-160000.1.1 Β· PostgreSQL
- opensuse-leap 16.0: postgresql13 13.23-160000.1.1 Β· PostgreSQL
- opensuse-leap 16.0: postgresql13 13.23-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