1
0
mirror of https://github.com/postgres/postgres.git synced 2025-11-24 00:23:06 +03:00

Little changes.

This commit is contained in:
Vadim B. Mikheev
1997-09-30 09:50:28 +00:00
parent 7a5d3fbd9b
commit a788027724
2 changed files with 15 additions and 9 deletions

View File

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