Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit5acd45f

Browse files
author
Thomas G. Lockhart
committed
Initial docs for Vadim's new trigger capabilities.
1 parentb105324 commit5acd45f

File tree

2 files changed

+67
-0
lines changed

2 files changed

+67
-0
lines changed

‎src/man/create_trigger.l

Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
1+
.\" This is -*-nroff-*-
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 $
4+
.TH "CREATE TRIGGER" SQL 09/25/97 PostgreSQL
5+
.SH NAME
6+
create trigger\(em create a new trigger
7+
.SH SYNOPSIS
8+
.nf
9+
\fBcreatetrigger\fR trigname\fB{before|after}\fP\fB{insert|update|delete}\fB
10+
\fBon\fR relname\fBforeach{row|statement}\fR
11+
\fBexecuteprocedure\fR funcname\fB(\fR arguments\fB)\fR
12+
.fi
13+
.SH DESCRIPTION
14+
.BR"Create Trigger"
15+
will enter a new trigger into the current data base. The trigger will be
16+
associated with the relation
17+
.IR relname
18+
and will execute the specified
19+
.IR funcname.
20+
21+
.PP
22+
The trigger can be specified to fire either
23+
.BR before
24+
the operation is attempted on a tuple (e.g. before constraints are checked and
25+
the insert/update/delete is attempted) or
26+
.BR after
27+
the operation has been attempted (e.g. after constraints are checked and the
28+
insert/update/delete has completed).
29+
If the trigger fires
30+
.BR before
31+
then the trigger may
32+
skip the operation for the current tuple,
33+
or change the current tuple (for insert/delete operations only).
34+
If the trigger fires
35+
.BR after
36+
then all changes including the last insertion/updation/deletion
37+
are "visible" to trigger.
38+
39+
.PP
40+
Refer to the SPI and trigger programming guides for more information.
41+
.SH EXAMPLES
42+
Examples are included in the contrib area of the source distribution.
43+
.SH "SEE ALSO"
44+
drop trigger(l).

‎src/man/drop_trigger.l

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
.\" This is -*-nroff-*-
2+
.\" XXX standard disclaimer belongs here....
3+
.\" $Header: /cvsroot/pgsql/src/man/Attic/drop_trigger.l,v 1.1 1997/09/26 15:13:09 thomas Exp $
4+
.TH "DROP TRIGGER" SQL 09/26/97 PostgreSQL
5+
.SH NAME
6+
drop trigger\(em destroy existing classes
7+
.SH SYNOPSIS
8+
.nf
9+
\fBdroptrigger\fR trigname
10+
.fi
11+
.SH DESCRIPTION
12+
.BR"Drop Trigger"
13+
removes triggers from the data base. Only its owner may destroy a
14+
trigger.
15+
.SH EXAMPLE
16+
.nf
17+
--
18+
--Destroy the empverify trigger
19+
--
20+
drop trigger empverify
21+
.fi
22+
.SH "SEE ALSO"
23+
create trigger(l).

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp