# man > ALTER_EVENT_TRIGGER(7)

---
type: CommandReference
command: ALTER EVENT TRIGGER
mode: man
section: 7
source: man-pages
---

## Quick Reference
- `ALTER EVENT TRIGGER name DISABLE` — Disable the trigger
- `ALTER EVENT TRIGGER name ENABLE` — Enable the trigger for all sessions
- `ALTER EVENT TRIGGER name ENABLE REPLICA` — Enable only for replica sessions
- `ALTER EVENT TRIGGER name ENABLE ALWAYS` — Enable regardless of replication role
- `ALTER EVENT TRIGGER name OWNER TO new_owner` — Change ownership
- `ALTER EVENT TRIGGER name RENAME TO new_name` — Rename the trigger

## Name
ALTER EVENT TRIGGER — change the definition of an event trigger

## Synopsis
sql
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;
## Options
- `name` — Name of the existing event trigger to alter.
- `new_owner` — New owner; can be a user name, `CURRENT_ROLE`, `CURRENT_USER`, or `SESSION_USER`.
- `new_name` — New name for the event trigger.
- `DISABLE` — Disable the trigger; it remains defined but does not execute.
- `ENABLE` — Enable the trigger to fire on all sessions, unless overridden by `session_replication_role`.
- `ENABLE REPLICA` — Enable the trigger only for sessions in replica mode.
- `ENABLE ALWAYS` — Enable the trigger for all sessions regardless of the replication role setting.

## Examples
sql
-- Disable an event trigger
ALTER EVENT TRIGGER my_trigger DISABLE;

-- Enable for all sessions
ALTER EVENT TRIGGER my_trigger ENABLE;

-- Change ownership to user "admin"
ALTER EVENT TRIGGER my_trigger OWNER TO admin;

-- Rename the trigger
ALTER EVENT TRIGGER my_trigger RENAME TO new_trigger;
## See Also
- [CREATE EVENT TRIGGER](http://localhost/phpMan.php/man/TRIGGER/7/markdown)
- [DROP EVENT TRIGGER](http://localhost/phpMan.php/man/TRIGGER/7/markdown)