<!--
$Header: /usr/prj/pg/cvsroot/doc/doc/src/sgml/ref/create_constraint.sgml,v 1.3 2001/09/04 11:57:17 i-kaori Exp $
Postgres documentation
-->

<refentry id="SQL-CREATECONSTRAINT">
 <refmeta>
  <refentrytitle id="sql-createconstraint-title">
   CREATE CONSTRAINT TRIGGER
  </refentrytitle>
  <refmiscinfo>SQL<!-- Language Statements -->言語</refmiscinfo>
 </refmeta>
 <refnamediv>
  <refname>
   CREATE CONSTRAINT TRIGGER
  </refname>
  <refpurpose>
   <!-- Create a trigger to support a constraint -->
   制約をサポートするトリガを作成します。<indexterm><primary>CREATE CONSTRAINT TRIGGER</primary></indexterm><indexterm><primary>SQL</primary><secondary>CREATE CONSTRAINT TRIGGER</secondary></indexterm><indexterm><primary sortas="とりが">トリガ</primary><secondary sortas="さくせい">作成</secondary></indexterm><indexterm><primary sortas="せいやく">制約</primary><secondary sortas="とりが">トリガ</secondary></indexterm>
  </refpurpose>
 </refnamediv>
 <refsynopsisdiv>
  <refsynopsisdivinfo>
   <date>2000-04-13</date>
  </refsynopsisdivinfo>
<synopsis>
CREATE CONSTRAINT TRIGGER <replaceable class="parameter">name</replaceable>
    AFTER <replaceable class="parameter">events</replaceable> ON
    <replaceable class="parameter">relation</replaceable> <replaceable class="parameter">constraint</replaceable> <replaceable class="parameter">attributes</replaceable>
    FOR EACH ROW EXECUTE PROCEDURE <replaceable class="parameter">func</replaceable> '(' <replaceable class="parameter">args</replaceable> ')'
</synopsis>

  <refsect2 id="R2-SQL-CREATECONSTRAINT-1">
   <title>
    <!-- Inputs -->入力
   </title>
		
    <variablelist>
     <varlistentry>
      <term><replaceable class="PARAMETER">name</replaceable></term>
      <listitem>
       <para>
	<!-- The name of the constraint trigger. -->
        制約トリガの名前です。
       </para>
      </listitem>
     </varlistentry>

     <varlistentry>
      <term><replaceable class="PARAMETER">events</replaceable></term>
      <listitem>
       <para>
        <!-- 
      	The event categories for which this trigger should be fired.
        -->

        このトリガが実行されるイベントの種類です。
       </para>
      </listitem>
     </varlistentry>

     <varlistentry>
      <term><replaceable class="PARAMETER">relation</replaceable></term>
      <listitem>
       <para>
	<!-- Table name of the triggering relation. -->
        トリガをかけるテーブル名です。

       </para>
      </listitem>
     </varlistentry>

     <varlistentry>
      <term><replaceable class="PARAMETER">constraint</replaceable></term>
      <listitem>
       <para>
	<!-- Actual onstraint specification. -->
        制約の実仕様です。
       </para>
      </listitem>
     </varlistentry>

     <varlistentry>
      <term><replaceable class="PARAMETER">attributes</replaceable></term>
      <listitem>
       <para>
	<!-- Constraint attributes. -->
        制約属性です。
       </para>
      </listitem>
     </varlistentry>

     <varlistentry>
      <term><replaceable class="PARAMETER">func</replaceable>(<replaceable class="PARAMETER">args</replaceable>)</term>
      <listitem>
       <para>
	<!-- Function to call as part of the trigger processing. -->
        トリガの処理部分として呼び出される関数です。
       </para>
      </listitem>
     </varlistentry>
    </variablelist>
  </refsect2>

  <refsect2 id="R2-SQL-CREATECONSTRAINT-2">
   <title>
    <!-- Outputs -->出力
   </title>
    
    <variablelist>
     <varlistentry>
      <term><computeroutput>
CREATE CONSTRAINT
       </computeroutput></term>
      <listitem>
       <para>
	<!-- Message returned if successful. -->
        成功すると返されるメッセージです。
       </para>
      </listitem>
     </varlistentry>
    </variablelist>
  </refsect2>
 </refsynopsisdiv>

 <refsect1 id="R1-SQL-CREATECONSTRAINT-1">
  <title>
   <!-- Description -->説明
  </title>
  <para>
   <!-- 
   <command>CREATE CONSTRAINT TRIGGER</command> is used from inside of 
   <command>CREATE/ALTER TABLE</command> and by
   <application>pg_dump</application>  to  create  the  special  triggers  for
   referential  integrity.-->

    <command>CREATE CONSTRAINT TRIGGER</command>は、<command>CREATE/ALTER TABLE</command>の中で、または<application>pg_dump</application>によって使用され、参照整合性用の特殊なトリガを作成します。
  </para>

  <para>
   <!-- It is not intended for general use. -->
   一般的な使用を意図したものではありません。
  </para>
 </refsect1>
</refentry>

<!-- Keep this comment at the end of the file
Local variables:
mode: sgml
sgml-omittag:nil
sgml-shorttag:t
sgml-minimize-attributes:nil
sgml-always-quote-attributes:t
sgml-indent-step:1
sgml-indent-data:t
sgml-parent-document:nil
sgml-default-dtd-file:"../reference.ced"
sgml-exposed-tags:nil
sgml-local-catalogs:"/usr/lib/sgml/catalog"
sgml-local-ecat-files:nil
End:
-->
