]> begriffs open source - ai-pg/blob - full-docs/man7/ALTER_EVENT_TRIGGER.7
Convert HTML docs to more streamlined TXT
[ai-pg] / full-docs / man7 / ALTER_EVENT_TRIGGER.7
1 '\" t
2 .\"     Title: ALTER EVENT TRIGGER
3 .\"    Author: The PostgreSQL Global Development Group
4 .\" Generator: DocBook XSL Stylesheets vsnapshot <http://docbook.sf.net/>
5 .\"      Date: 2025
6 .\"    Manual: PostgreSQL 18.0 Documentation
7 .\"    Source: PostgreSQL 18.0
8 .\"  Language: English
9 .\"
10 .TH "ALTER EVENT TRIGGER" "7" "2025" "PostgreSQL 18.0" "PostgreSQL 18.0 Documentation"
11 .\" -----------------------------------------------------------------
12 .\" * Define some portability stuff
13 .\" -----------------------------------------------------------------
14 .\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
15 .\" http://bugs.debian.org/507673
16 .\" http://lists.gnu.org/archive/html/groff/2009-02/msg00013.html
17 .\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
18 .ie \n(.g .ds Aq \(aq
19 .el       .ds Aq '
20 .\" -----------------------------------------------------------------
21 .\" * set default formatting
22 .\" -----------------------------------------------------------------
23 .\" disable hyphenation
24 .nh
25 .\" disable justification (adjust text to left margin only)
26 .ad l
27 .\" -----------------------------------------------------------------
28 .\" * MAIN CONTENT STARTS HERE *
29 .\" -----------------------------------------------------------------
30 .SH "NAME"
31 ALTER_EVENT_TRIGGER \- change the definition of an event trigger
32 .SH "SYNOPSIS"
33 .sp
34 .nf
35 ALTER EVENT TRIGGER \fIname\fR DISABLE
36 ALTER EVENT TRIGGER \fIname\fR ENABLE [ REPLICA | ALWAYS ]
37 ALTER EVENT TRIGGER \fIname\fR OWNER TO { \fInew_owner\fR | CURRENT_ROLE | CURRENT_USER | SESSION_USER }
38 ALTER EVENT TRIGGER \fIname\fR RENAME TO \fInew_name\fR
39 .fi
40 .SH "DESCRIPTION"
41 .PP
42 \fBALTER EVENT TRIGGER\fR
43 changes properties of an existing event trigger\&.
44 .PP
45 You must be superuser to alter an event trigger\&.
46 .SH "PARAMETERS"
47 .PP
48 \fIname\fR
49 .RS 4
50 The name of an existing trigger to alter\&.
51 .RE
52 .PP
53 \fInew_owner\fR
54 .RS 4
55 The user name of the new owner of the event trigger\&.
56 .RE
57 .PP
58 \fInew_name\fR
59 .RS 4
60 The new name of the event trigger\&.
61 .RE
62 .PP
63 DISABLE/ENABLE [ REPLICA | ALWAYS ]
64 .RS 4
65 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
66 session_replication_role\&.
67 .RE
68 .SH "COMPATIBILITY"
69 .PP
70 There is no
71 \fBALTER EVENT TRIGGER\fR
72 statement in the SQL standard\&.
73 .SH "SEE ALSO"
74 CREATE EVENT TRIGGER (\fBCREATE_EVENT_TRIGGER\fR(7)), DROP EVENT TRIGGER (\fBDROP_EVENT_TRIGGER\fR(7))