ALTER EVENT TRIGGER
Read PG 18 manual ↗change the definition of an event trigger
Syntax
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_nameSyntax diagrams
Read left to right. Branches are choices, bypasses are optional, loops repeat. Select an underlined parameter to open its rule.
ALTER EVENT TRIGGER · Syntax 2
ALTER EVENT TRIGGER · Syntax 3
ALTER EVENT TRIGGER · Syntax 4
Description
ALTER EVENT TRIGGER changes properties of an existing event trigger.
You must be superuser to alter an event trigger.
Parameters
nameThe name of an existing trigger to alter.
new_ownerThe user name of the new owner of the event trigger.
new_nameThe new name of the event trigger.
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. See also session_replication_role.
Compatibility
There is no ALTER EVENT TRIGGER statement in the SQL standard.
See Also
CREATE EVENT TRIGGER, DROP EVENT TRIGGERVersion history 2
- PG 13 → 14changed
- PG 11 → 12changed
Related entries
Definition snapshot: 2026-09-14T13:14:25.700916+00:00@99e6866c · English manual source