logo
Free, Micro AI Code Reviews That Run on Git Commit
git-lrc git-lrc GitHub Install Now We'd appreciate a star git-lrc - Free, Micro AI Code Reviews That Run on Git Commit | Product Hunt git-lrc - Free, Micro AI Code Reviews That Run on Git Commit | Product Hunt

ALTER_EVENT_TRIGGER - change the definition of an event trigger

Compatibility

       There is no ALTEREVENTTRIGGER statement in the SQL standard.

Description

ALTEREVENTTRIGGER changes properties of an existing event trigger.

       You must be superuser to alter an event trigger.

Name

       ALTER_EVENT_TRIGGER - change the definition of an event trigger

Parameters

name
           The name of an existing trigger to alter.

       new_owner
           The user name of the new owner of the event trigger.

       new_name
           The 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.

See Also

       CREATE EVENT TRIGGER (CREATE_EVENT_TRIGGER(7)), DROP EVENT TRIGGER (DROP_EVENT_TRIGGER(7))

PostgreSQL 17.5                                       2025                                ALTEREVENTTRIGGER(7)

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

See Also