2
.\" Title: DROP TRIGGER
3
.\" Author: The PostgreSQL Global Development Group
4
.\" Generator: DocBook XSL Stylesheets v1.75.1 <http://docbook.sf.net/>
6
.\" Manual: PostgreSQL 9.1beta1 Documentation
7
.\" Source: PostgreSQL 9.1beta1
10
.TH "DROP TRIGGER" "7" "2011-04-27" "PostgreSQL 9.1beta1" "PostgreSQL 9.1beta1 Documentation"
11
.\" -----------------------------------------------------------------
12
.\" * set default formatting
13
.\" -----------------------------------------------------------------
14
.\" disable hyphenation
16
.\" disable justification (adjust text to left margin only)
18
.\" -----------------------------------------------------------------
19
.\" * MAIN CONTENT STARTS HERE *
20
.\" -----------------------------------------------------------------
22
DROP_TRIGGER \- remove a trigger
27
DROP TRIGGER [ IF EXISTS ] \fIname\fR ON \fItable\fR [ CASCADE | RESTRICT ]
32
removes an existing trigger definition\&. To execute this command, the current user must be the owner of the table for which the trigger is defined\&.
37
Do not throw an error if the trigger does not exist\&. A notice is issued in this case\&.
42
The name of the trigger to remove\&.
47
The name (optionally schema\-qualified) of the table for which the trigger is defined\&.
52
Automatically drop objects that depend on the trigger\&.
57
Refuse to drop the trigger if any objects depend on it\&. This is the default\&.
70
DROP TRIGGER if_dist_exists ON films;
81
is incompatible with the SQL standard\&. In the SQL standard, trigger names are not local to tables, so the command is simply
82
DROP TRIGGER \fIname\fR\&.
84
CREATE TRIGGER (\fBCREATE_TRIGGER\fR(7))