Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit7f85cac

Browse files
author
Thomas G. Lockhart
committed
Clean up description of SET CONSTRAINTS.
1 parent07f6006 commit7f85cac

File tree

1 file changed

+17
-8
lines changed

1 file changed

+17
-8
lines changed

‎doc/src/sgml/ref/set.sgml

Lines changed: 17 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<!--
2-
$Header: /cvsroot/pgsql/doc/src/sgml/ref/set.sgml,v 1.41 2000/04/1423:12:29 momjian Exp $
2+
$Header: /cvsroot/pgsql/doc/src/sgml/ref/set.sgml,v 1.42 2000/04/18 15:23:34 thomas Exp $
33
Postgres documentation
44
-->
55

@@ -266,12 +266,14 @@ SELECT setseed(<replaceable>value</replaceable>);
266266
</varlistentry>
267267

268268
<varlistentry>
269-
<term>CONSTRAINT</term>
269+
<term>CONSTRAINTS</term>
270270
<listitem>
271271
<para>
272-
SET CONSTRAINTS controls the frequency of foreign key
273-
constratint checking in the current transaction. Allowed
274-
parameters are:
272+
SET CONSTRAINTS affects the behavior of constraint evaluation
273+
in the current transaction.
274+
SET CONSTRAINTS, specified
275+
in SQL3, has these allowed parameters:
276+
275277
<variablelist>
276278
<varlistentry>
277279
<term><replaceable class="parameter">constraintlist</replaceable></term>
@@ -295,12 +297,19 @@ SELECT setseed(<replaceable>value</replaceable>);
295297
</para>
296298

297299
<para>
298-
In <option>DEFERRED</option> mode, foreign key constraints
299-
marked as <option>DEFERRABLE</option> are checked only at
300-
transaction commit.
301300
In <option>IMMEDIATE</option> mode, foreign key constraints
302301
are checked at the end of each query.
303302
</para>
303+
304+
<para>
305+
In <option>DEFERRED</option> mode, foreign key constraints
306+
marked as <option>DEFERRABLE</option> are checked only at
307+
transaction commit or until its mode is explicitly set to
308+
<option>IMMEDIATE</option>.
309+
This is actually only done for foreign key
310+
constraints, so it does not apply to UNIQUE or other
311+
constraints.
312+
</para>
304313
</listitem>
305314
</varlistentry>
306315

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp