.\" This is -*-nroff-*- .\" XXX standard disclaimer belongs here.... .\" $Header: /usr/local/cvsroot/pgsql/src/man/create_trigger.l,v 1.3 1998/01/11 22:17:20 momjian Exp $ .\" Translated by Mitsuhiro Maeda (mitsu@cni.co.jp) .TH "CREATE TRIGGER" SQL 09/25/97 日本語PostgreSQL .SH 名称 .\" create trigger - create a new trigger create trigger - 新しいトリガを作ります .SH 形式 .nf \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 \fBEventX\fR は INSERT、DELETE、UPDATE のいずれかです .fi .SH 説明 .\" .BR "Create Trigger" .\" will enter a new trigger into the current data base. .BR "create trigger" は現在のデータベースに新しいトリガを入力します。 .\" The trigger will be .\" associated with the relation .\" .IR relname .\" and will execute the specified .\" .IR funcname . トリガは、リレーション .IR relname に関連して、指定された .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 .\" the operation is attempted on a tuple (e.g. before constraints are checked and .\" the insert/update/delete is attempted) or .\" .BR after .\" the operation has been attempted (e.g. after constraints are checked and the .\" insert/update/delete has completed). トリガの実行は、 タプルに何らかの作業が実行される .BR 前に (例えば、制約をチェックして挿入/更新/削除が実行される前)、 もしくは、 何らかの作業が実行された後 (例えば、制約をチェックして挿入/更新/削除が完了した後) のどちらでも指定できます。 .\" If the trigger fires .\" .BR before .\" then the trigger may .\" skip the operation for the current tuple, .\" or change tuple being inserted (for insert/update operations only). もしトリガが .BR 事前 に実行されるなら、 現在のタプルになされる作業をとばす、 もしくは挿入されるタプルを変更することができます。 (挿入/更新の作業に限ります。) .\" If the trigger fires .\" .BR after .\" then all changes including the last insertion/updation/deletion .\" are "visible" to trigger. もしトリガが .BR 事後 に実行されるなら、 最後の挿入/更新/削除などのすべての変更はトリガに見える状態となります。 .PP .\" Refer to the SPI and trigger programming guides for more information. さらなる情報については SPI と トリガのプログラミングガイドを参照してください。 .SH 例 .\" Examples are included in the contrib area of the source distribution. 使用例は配布ソースの contrib に含まれています。 .SH 参照 drop trigger(l).