Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
P
Postgres FD Implementation
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Abuhujair Javed
Postgres FD Implementation
Commits
52831f79
Commit
52831f79
authored
Oct 16, 2006
by
Bruce Momjian
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Update to CREATE CONSTRAINT manual page.
Michael Glaesemann
parent
c2e7da1f
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
95 additions
and
68 deletions
+95
-68
doc/src/sgml/ref/create_constraint.sgml
doc/src/sgml/ref/create_constraint.sgml
+95
-68
No files found.
doc/src/sgml/ref/create_constraint.sgml
View file @
52831f79
<!--
<!--
$PostgreSQL: pgsql/doc/src/sgml/ref/create_constraint.sgml,v 1.1
4 2006/09/16 00:30:17
momjian Exp $
$PostgreSQL: pgsql/doc/src/sgml/ref/create_constraint.sgml,v 1.1
5 2006/10/16 19:30:09
momjian Exp $
PostgreSQL documentation
PostgreSQL documentation
-->
-->
...
@@ -21,9 +21,12 @@ PostgreSQL documentation
...
@@ -21,9 +21,12 @@ PostgreSQL documentation
<refsynopsisdiv>
<refsynopsisdiv>
<synopsis>
<synopsis>
CREATE CONSTRAINT TRIGGER <replaceable class="parameter">name</replaceable>
CREATE CONSTRAINT TRIGGER <replaceable class="parameter">name</replaceable>
AFTER <replaceable class="parameter">events</replaceable> ON
AFTER <replaceable class="parameter">event [ OR ... ]</replaceable>
<replaceable class="parameter">tablename</replaceable> <replaceable class="parameter">constraint</replaceable> <replaceable class="parameter">attributes</replaceable>
ON <replaceable class="parameter">table_name</replaceable>
FOR EACH ROW EXECUTE PROCEDURE <replaceable class="parameter">funcname</replaceable> ( <replaceable class="parameter">args</replaceable> )
[ FROM <replaceable class="parameter">referenced_table_name</replaceable> ]
{ NOT DEFERRABLE | [ DEFERABBLE ] { INITIALLY IMMEDIATE | INITIALLY DEFERRED } }
FOR EACH ROW
EXECUTE PROCEDURE <replaceable class="parameter">funcname</replaceable> ( <replaceable class="parameter">arguments</replaceable> )
</synopsis>
</synopsis>
</refsynopsisdiv>
</refsynopsisdiv>
...
@@ -47,7 +50,11 @@ CREATE CONSTRAINT TRIGGER <replaceable class="parameter">name</replaceable>
...
@@ -47,7 +50,11 @@ CREATE CONSTRAINT TRIGGER <replaceable class="parameter">name</replaceable>
<term><replaceable class="PARAMETER">name</replaceable></term>
<term><replaceable class="PARAMETER">name</replaceable></term>
<listitem>
<listitem>
<para>
<para>
The name of the constraint trigger.
The name of the constraint trigger. The actual name of the
created trigger will be of the form
<literal>RI_ConstraintTrigger_0000<literal> (where 0000 is some number
assigned by the server).
Use this assigned name is when dropping the constraint.
</para>
</para>
</listitem>
</listitem>
</varlistentry>
</varlistentry>
...
@@ -56,35 +63,42 @@ CREATE CONSTRAINT TRIGGER <replaceable class="parameter">name</replaceable>
...
@@ -56,35 +63,42 @@ CREATE CONSTRAINT TRIGGER <replaceable class="parameter">name</replaceable>
<term><replaceable class="PARAMETER">events</replaceable></term>
<term><replaceable class="PARAMETER">events</replaceable></term>
<listitem>
<listitem>
<para>
<para>
The event categories for which this trigger should be fired.
One of <literal>INSERT</literal>, <literal>UPDATE</literal>, or
<literal>DELETE</literal>; this specifies the event that will fire the
trigger. Multiple events can be specified using <literal>OR<literal>.
</para>
</para>
</listitem>
</listitem>
</varlistentry>
</varlistentry>
<varlistentry>
<varlistentry>
<term><replaceable class="PARAMETER">table
name</replaceable></term>
<term><replaceable class="PARAMETER">table_
name</replaceable></term>
<listitem>
<listitem>
<para>
<para>
The name (possibly schema-qualified)
of the table in which
The (possibly schema-qualified) name
of the table in which
the triggering events occur.
the triggering events occur.
</para>
</para>
</listitem>
</listitem>
</varlistentry>
</varlistentry>
<varlistentry>
<varlistentry>
<term><replaceable class="PARAMETER">constraint
</replaceable></term>
<term><replaceable class="PARAMETER">referenced_table_name
</replaceable></term>
<listitem>
<listitem>
<para>
<para>
Actual constraint specification.
The (possibly schema-qualified) name of the table referenced by the
constraint. Used by foreign key constraints triggers.
</para>
</para>
</listitem>
</listitem>
</varlistentry>
</varlistentry>
<varlistentry>
<varlistentry>
<term><replaceable class="PARAMETER">attributes</replaceable></term>
<term><literal>DEFERRABLE</literal></term>
<term><literal>NOT DEFERRABLE</literal></term>
<term><literal>INITIALLY IMMEDIATE</literal></term>
<term><literal>INITIALLY DEFERRED</literal></term>
<listitem>
<listitem>
<para>
<para>
The constraint attributes.
See the <xref linkend="SQL-CREATETABLE" endterm="SQL-CREATETABLE-TITLE">
documentation for details of these constraint options.
</para>
</para>
</listitem>
</listitem>
</varlistentry>
</varlistentry>
...
@@ -93,10 +107,23 @@ CREATE CONSTRAINT TRIGGER <replaceable class="parameter">name</replaceable>
...
@@ -93,10 +107,23 @@ CREATE CONSTRAINT TRIGGER <replaceable class="parameter">name</replaceable>
<term><replaceable class="PARAMETER">funcname</replaceable>(<replaceable class="PARAMETER">args</replaceable>)</term>
<term><replaceable class="PARAMETER">funcname</replaceable>(<replaceable class="PARAMETER">args</replaceable>)</term>
<listitem>
<listitem>
<para>
<para>
The function to call as part of the trigger processing.
The function to call as part of the trigger processing. See <xref
linkend="SQL-CREATETRIGGER" endterm="SQL-CREATETRIGGER-TITLE"> for
details.
</para>
</para>
</listitem>
</listitem>
</varlistentry>
</varlistentry>
</variablelist>
</variablelist>
</refsect1>
</refsect1>
</refentry>
<refsect1>
<title>Compatibility</title>
<para>
<command>CREATE CONTRAINT TRIGGER</command> is a
<productname>PostgreSQL</productname> extension of the <acronym>SQL</>
standard.
</para>
</refsect1>
</refentry>
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment