ALTER_EVENT_TRIGGER(7pg14)

πŸ“¦ version 14.24, in opensuse-leap 16.0

✨ 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 also session_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 ⭐

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