ALTER EVENT TRIGGER
change the definition of an event trigger
English manual coverage begins with PostgreSQL 6.4. Source history and runtime observations have their own recorded version boundaries.
Reading PG 18·Select a recorded version
- anchor
- SQL-ALTEREVENTTRIGGER
- file
- sql-altereventtrigger.html
- lang
- en
- name
- ALTER EVENT TRIGGER
- purpose
- change the definition of an event trigger
- purpose zh
- 更改事件触发器的定义
- sections same as
- Unknown
- slug
- 18
- synopsis text
- 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
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
Definition PG 18
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_nameDescription
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 TRIGGERCompare versions
Complete source facts
synopsis html
ALTER EVENT TRIGGER <em class="replaceable"><code>name</code></em> DISABLE
ALTER EVENT TRIGGER <em class="replaceable"><code>name</code></em> ENABLE [ REPLICA | ALWAYS ]
ALTER EVENT TRIGGER <em class="replaceable"><code>name</code></em> OWNER TO { <em class="replaceable"><code>new_owner</code></em> | CURRENT_ROLE | CURRENT_USER | SESSION_USER }
ALTER EVENT TRIGGER <em class="replaceable"><code>name</code></em> RENAME TO <em class="replaceable"><code>new_name</code></em>Source references
Full definition and evidence JSON
Definition sources
center · PostgreSQL 18 · wiki-repair-20261023:cc29788a2abf6baf73c6ec1143ae373ac76de99df96bac5f92b8719bbc0eb5a3
Text language: en · wiki-repair-20261023:cc29788a2abf6baf73c6ec1143ae373ac76de99df96bac5f92b8719bbc0eb5a3