Commit ade95052 authored by Bruce Momjian's avatar Bruce Momjian

Update set constraints man page

parent 0fe9b399
<!-- <!--
$Header: /cvsroot/pgsql/doc/src/sgml/ref/set.sgml,v 1.40 2000/04/14 15:17:28 thomas Exp $ $Header: /cvsroot/pgsql/doc/src/sgml/ref/set.sgml,v 1.41 2000/04/14 23:12:29 momjian Exp $
Postgres documentation Postgres documentation
--> -->
...@@ -269,10 +269,9 @@ SELECT setseed(<replaceable>value</replaceable>); ...@@ -269,10 +269,9 @@ SELECT setseed(<replaceable>value</replaceable>);
<term>CONSTRAINT</term> <term>CONSTRAINT</term>
<listitem> <listitem>
<para> <para>
SET CONSTRAINTS is the SQL3 specified command to change the SET CONSTRAINTS controls the frequency of foreign key
default behaviour of constraints with respect to deferring in the current constratint checking in the current transaction. Allowed
transaction. Allowed parameters are: parameters are:
<variablelist> <variablelist>
<varlistentry> <varlistentry>
<term><replaceable class="parameter">constraintlist</replaceable></term> <term><replaceable class="parameter">constraintlist</replaceable></term>
...@@ -296,11 +295,11 @@ SELECT setseed(<replaceable>value</replaceable>); ...@@ -296,11 +295,11 @@ SELECT setseed(<replaceable>value</replaceable>);
</para> </para>
<para> <para>
In deferred mode, the actual check of the constraint is held In <option>DEFERRED</option> mode, foreign key constraints
back until either its mode is explicitly set to <option>IMMEDIATE</option>, marked as <option>DEFERRABLE</option> are checked only at
or until COMMIT. This is actually only done for foreign key transaction commit.
constraints, so it does not apply to UNIQUE or other In <option>IMMEDIATE</option> mode, foreign key constraints
constraints. are checked at the end of each query.
</para> </para>
</listitem> </listitem>
</varlistentry> </varlistentry>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment