1ALTER TRIGGER(7) PostgreSQL 9.2.24 Documentation ALTER TRIGGER(7)
2
3
4
6 ALTER_TRIGGER - change the definition of a trigger
7
9 ALTER TRIGGER name ON table_name RENAME TO new_name
10
12 ALTER TRIGGER changes properties of an existing trigger. The RENAME
13 clause changes the name of the given trigger without otherwise changing
14 the trigger definition.
15
16 You must own the table on which the trigger acts to be allowed to
17 change its properties.
18
20 name
21 The name of an existing trigger to alter.
22
23 table_name
24 The name of the table on which this trigger acts.
25
26 new_name
27 The new name for the trigger.
28
30 The ability to temporarily enable or disable a trigger is provided by
31 ALTER TABLE (ALTER_TABLE(7)), not by ALTER TRIGGER, because ALTER
32 TRIGGER has no convenient way to express the option of enabling or
33 disabling all of a table's triggers at once.
34
36 To rename an existing trigger:
37
38 ALTER TRIGGER emp_stamp ON emp RENAME TO emp_track_chgs;
39
41 ALTER TRIGGER is a PostgreSQL extension of the SQL standard.
42
44 ALTER TABLE (ALTER_TABLE(7))
45
46
47
48PostgreSQL 9.2.24 2017-11-06 ALTER TRIGGER(7)