mirror of
https://git.postgresql.org/git/postgresql.git
synced 2024-10-04 09:46:51 +02:00
Clean up description of SET CONSTRAINTS.
This commit is contained in:
parent
07f600619e
commit
7f85cac04a
@ -1,5 +1,5 @@
|
|||||||
<!--
|
<!--
|
||||||
$Header: /cvsroot/pgsql/doc/src/sgml/ref/set.sgml,v 1.41 2000/04/14 23:12:29 momjian Exp $
|
$Header: /cvsroot/pgsql/doc/src/sgml/ref/set.sgml,v 1.42 2000/04/18 15:23:34 thomas Exp $
|
||||||
Postgres documentation
|
Postgres documentation
|
||||||
-->
|
-->
|
||||||
|
|
||||||
@ -266,12 +266,14 @@ SELECT setseed(<replaceable>value</replaceable>);
|
|||||||
</varlistentry>
|
</varlistentry>
|
||||||
|
|
||||||
<varlistentry>
|
<varlistentry>
|
||||||
<term>CONSTRAINT</term>
|
<term>CONSTRAINTS</term>
|
||||||
<listitem>
|
<listitem>
|
||||||
<para>
|
<para>
|
||||||
SET CONSTRAINTS controls the frequency of foreign key
|
SET CONSTRAINTS affects the behavior of constraint evaluation
|
||||||
constratint checking in the current transaction. Allowed
|
in the current transaction.
|
||||||
parameters are:
|
SET CONSTRAINTS, specified
|
||||||
|
in SQL3, has these allowed parameters:
|
||||||
|
|
||||||
<variablelist>
|
<variablelist>
|
||||||
<varlistentry>
|
<varlistentry>
|
||||||
<term><replaceable class="parameter">constraintlist</replaceable></term>
|
<term><replaceable class="parameter">constraintlist</replaceable></term>
|
||||||
@ -295,12 +297,19 @@ SELECT setseed(<replaceable>value</replaceable>);
|
|||||||
</para>
|
</para>
|
||||||
|
|
||||||
<para>
|
<para>
|
||||||
In <option>DEFERRED</option> mode, foreign key constraints
|
|
||||||
marked as <option>DEFERRABLE</option> are checked only at
|
|
||||||
transaction commit.
|
|
||||||
In <option>IMMEDIATE</option> mode, foreign key constraints
|
In <option>IMMEDIATE</option> mode, foreign key constraints
|
||||||
are checked at the end of each query.
|
are checked at the end of each query.
|
||||||
</para>
|
</para>
|
||||||
|
|
||||||
|
<para>
|
||||||
|
In <option>DEFERRED</option> mode, foreign key constraints
|
||||||
|
marked as <option>DEFERRABLE</option> are checked only at
|
||||||
|
transaction commit or until its mode is explicitly set to
|
||||||
|
<option>IMMEDIATE</option>.
|
||||||
|
This is actually only done for foreign key
|
||||||
|
constraints, so it does not apply to UNIQUE or other
|
||||||
|
constraints.
|
||||||
|
</para>
|
||||||
</listitem>
|
</listitem>
|
||||||
</varlistentry>
|
</varlistentry>
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user