11.\" This is -*-nroff-*-
22.\" 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 $
44.TH "CREATE TRIGGER" SQL 09/25/97 PostgreSQL
55.SH NAME
66create trigger\(em create a new trigger
77.SH SYNOPSIS
88.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
1011\fB on \fR relname\fB for each {row|statement} \fR
1112\fB execute procedure \fR funcname\fB ( \fR arguments\fB ) \fR
13+
14+ where\fB EventX \fR is one of INSERT, DELETE, UPDATE
1215.fi
1316.SH DESCRIPTION
1417.BR " Create Trigger"
@@ -18,6 +21,9 @@ associated with the relation
1821and will execute the specified
1922.IR funcname .
2023
24+ Only relation owner may create a trigger on this relation.
25+
26+ Currently, STATEMENT triggers are not implemented.
2127.PP
2228The trigger can be specified to fire either
2329.BR before
@@ -30,7 +36,7 @@ If the trigger fires
3036.BR before
3137then the trigger may
3238skip the operation for the current tuple,
33- or changethe current tuple (for insert/delete operations only).
39+ or changetuple being inserted (for insert/update operations only).
3440If the trigger fires
3541.BR after
3642then all changes including the last insertion/updation/deletion