1DROP TRIGGER(7) PostgreSQL 9.2.24 Documentation DROP TRIGGER(7)
2
3
4
6 DROP_TRIGGER - remove a trigger
7
9 DROP TRIGGER [ IF EXISTS ] name ON table_name [ CASCADE | RESTRICT ]
10
12 DROP TRIGGER removes an existing trigger definition. To execute this
13 command, the current user must be the owner of the table for which the
14 trigger is defined.
15
17 IF EXISTS
18 Do not throw an error if the trigger does not exist. A notice is
19 issued in this case.
20
21 name
22 The name of the trigger to remove.
23
24 table_name
25 The name (optionally schema-qualified) of the table for which the
26 trigger is defined.
27
28 CASCADE
29 Automatically drop objects that depend on the trigger.
30
31 RESTRICT
32 Refuse to drop the trigger if any objects depend on it. This is the
33 default.
34
36 Destroy the trigger if_dist_exists on the table films:
37
38 DROP TRIGGER if_dist_exists ON films;
39
41 The DROP TRIGGER statement in PostgreSQL is incompatible with the SQL
42 standard. In the SQL standard, trigger names are not local to tables,
43 so the command is simply DROP TRIGGER name.
44
46 CREATE TRIGGER (CREATE_TRIGGER(7))
47
48
49
50PostgreSQL 9.2.24 2017-11-06 DROP TRIGGER(7)