ALTER EVENT TRIGGER

|    ALTER EVENT TRIGGER     |                       |            |                  |                                |
|:--------------------------:|-----------------------|------------|------------------|--------------------------------|
|[Prev](sql-alterdomain.html)|[Up](sql-commands.html)|SQL Commands|[Home](index.html)| [Next](sql-alterextension.html)|

---

[]()

## ALTER EVENT TRIGGER

ALTER EVENT TRIGGER — change the definition of an event trigger

## 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

```

## Description

`ALTER EVENT TRIGGER` changes properties of an existing event trigger.

 You must be superuser to alter 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 ] TRIGGER`

 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](runtime-config-client.html#GUC-SESSION-REPLICATION-ROLE).

## Compatibility

 There is no `ALTER EVENT TRIGGER` statement in the SQL standard.

## See Also

[CREATE EVENT TRIGGER](sql-createeventtrigger.html), [DROP EVENT TRIGGER](sql-dropeventtrigger.html)

---

|[Prev](sql-alterdomain.html)|[Up](sql-commands.html)| [Next](sql-alterextension.html)|
|:---------------------------|:---------------------:|-------------------------------:|
|        ALTER DOMAIN        |  [Home](index.html)   |         ALTER EXTENSION        |

 // \<![CDATA[ \<-- For SVG support if ('WebSocket' in window) { (function() { function refreshCSS() { var sheets = [].slice.call(document.getElementsByTagName("link")); var head = document.getElementsByTagName("head")[0]; for (var i = 0; i \< sheets.length; ++i) { var elem = sheets[i]; head.removeChild(elem); var rel = elem.rel; if (elem.href && typeof rel != "string" || rel.length == 0 || rel.toLowerCase() == "stylesheet") { var url = elem.href.replace(/(&|\\?)\_cacheOverride=\\d+/, ''); elem.href = url + (url.indexOf('?') \>= 0 ? '&' : '?') + '\_cacheOverride=' + (new Date().valueOf()); } head.appendChild(elem); } } var protocol = window.location.protocol === 'http:' ? 'ws://' : 'wss://'; var address = protocol + window.location.host + window.location.pathname + '/ws'; var socket = new WebSocket(address); socket.onmessage = function(msg) { if (msg.data == 'reload') window.location.reload(); else if (msg.data == 'refreshcss') refreshCSS(); }; console.log('Live reload enabled.'); })(); } // ]]\>