Little changes.
This commit is contained in:
parent
7a5d3fbd9b
commit
a788027724
@ -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
|
||||
|
@ -1,23 +1,23 @@
|
||||
.\" This is -*-nroff-*-
|
||||
.\" XXX standard disclaimer belongs here....
|
||||
.\" $Header: /cvsroot/pgsql/src/man/Attic/drop_trigger.l,v 1.1 1997/09/26 15:13:09 thomas Exp $
|
||||
.\" $Header: /cvsroot/pgsql/src/man/Attic/drop_trigger.l,v 1.2 1997/09/30 09:50:28 vadim Exp $
|
||||
.TH "DROP TRIGGER" SQL 09/26/97 PostgreSQL
|
||||
.SH NAME
|
||||
drop trigger \(em destroy existing classes
|
||||
drop trigger \(em destroy existing trigger
|
||||
.SH SYNOPSIS
|
||||
.nf
|
||||
\fBdrop trigger\fR trigname
|
||||
\fBdrop trigger\fR trigname \fBon\fR relname
|
||||
.fi
|
||||
.SH DESCRIPTION
|
||||
.BR "Drop Trigger"
|
||||
removes triggers from the data base. Only its owner may destroy a
|
||||
removes trigger for relation from the data base. Only relation owner may destroy a
|
||||
trigger.
|
||||
.SH EXAMPLE
|
||||
.nf
|
||||
--
|
||||
--Destroy the empverify trigger
|
||||
--Destroy the empverify trigger on relation emp
|
||||
--
|
||||
drop trigger empverify
|
||||
drop trigger empverify on emp
|
||||
.fi
|
||||
.SH "SEE ALSO"
|
||||
create trigger(l).
|
||||
|
Loading…
x
Reference in New Issue
Block a user