3 PostgreSQL documentation
6 <refentry id=
"SQL-ALTERTRIGGER">
8 <refentrytitle id=
"sql-altertrigger-title">ALTER TRIGGER
</refentrytitle>
9 <manvolnum>7</manvolnum>
10 <refmiscinfo>SQL - Language Statements
</refmiscinfo>
14 <refname>ALTER TRIGGER
</refname>
15 <refpurpose>change the definition of a trigger
</refpurpose>
18 <indexterm zone=
"sql-altertrigger">
19 <primary>ALTER TRIGGER
</primary>
24 ALTER TRIGGER
<replaceable class=
"PARAMETER">name
</replaceable> ON
<replaceable class=
"PARAMETER">table
</replaceable> RENAME TO
<replaceable class=
"PARAMETER">newname
</replaceable>
29 <title>Description
</title>
32 <command>ALTER TRIGGER
</command> changes properties of an existing
33 trigger. The
<literal>RENAME
</literal> clause changes the name of
34 the given trigger without otherwise changing the trigger
39 You must own the table on which the trigger acts to be allowed to change its properties.
44 <title>Parameters
</title>
48 <term><replaceable class=
"PARAMETER">name
</replaceable></term>
51 The name of an existing trigger to alter.
57 <term><replaceable class=
"PARAMETER">table
</replaceable></term>
60 The name of the table on which this trigger acts.
66 <term><replaceable class=
"PARAMETER">newname
</replaceable></term>
69 The new name for the trigger.
80 The ability to temporarily enable or disable a trigger is provided by
81 <xref linkend=
"SQL-ALTERTABLE" endterm=
"SQL-ALTERTABLE-TITLE">, not by
82 <command>ALTER TRIGGER<
/>, because
<command>ALTER TRIGGER<
/> has no
83 convenient way to express the option of enabling or disabling all of
84 a table's triggers at once.
89 <title>Examples
</title>
92 To rename an existing trigger:
94 ALTER TRIGGER emp_stamp ON emp RENAME TO emp_track_chgs;
100 <title>Compatibility
</title>
103 <command>ALTER TRIGGER
</command> is a
<productname>PostgreSQL<
/>
104 extension of the SQL standard.
109 <title>See Also
</title>
111 <simplelist type=
"inline">
112 <member><xref linkend=
"sql-altertable" endterm=
"sql-altertable-title"></member>