1
1
.\" This is -*-nroff-*-
2
2
.\" XXX standard disclaimer belongs here....
3
- .\" $Header: /cvsroot/pgsql/src/man/Attic/create_trigger.l,v 1.1 1997/09/26 15:13:08 thomas Exp $
3
+ .\" $Header: /cvsroot/pgsql/src/man/Attic/create_trigger.l,v 1.2 1997/09/30 09:50:27 vadim Exp $
4
4
.TH "CREATE TRIGGER" SQL 09/25/97 PostgreSQL
5
5
.SH NAME
6
6
create trigger \(em create a new trigger
7
7
.SH SYNOPSIS
8
8
.nf
9
- \fB create trigger \fR trigname \fB {before|after} \fP \fB {insert|update|delete} \fB
9
+ \fB create trigger \fR trigname \fB {before|after} \fP
10
+ \fB {Event1 [OR Event2 [OR Event3]]} \fB
10
11
\fB on \fR relname \fB for each {row|statement} \fR
11
12
\fB execute procedure \fR funcname \fB ( \fR arguments \fB ) \fR
13
+
14
+ where \fB EventX \fR is one of INSERT, DELETE, UPDATE
12
15
.fi
13
16
.SH DESCRIPTION
14
17
.BR " Create Trigger"
@@ -18,6 +21,9 @@ associated with the relation
18
21
and will execute the specified
19
22
.IR funcname .
20
23
24
+ Only relation owner may create a trigger on this relation.
25
+
26
+ Currently, STATEMENT triggers are not implemented.
21
27
.PP
22
28
The trigger can be specified to fire either
23
29
.BR before
@@ -30,7 +36,7 @@ If the trigger fires
30
36
.BR before
31
37
then the trigger may
32
38
skip the operation for the current tuple,
33
- or change the current tuple (for insert/delete operations only).
39
+ or change tuple being inserted (for insert/update operations only).
34
40
If the trigger fires
35
41
.BR after
36
42
then all changes including the last insertion/updation/deletion
0 commit comments