11<!--
2- $Header: /cvsroot/pgsql/doc/src/sgml/ref/set.sgml,v 1.41 2000/04/14 23: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 $
33Postgres 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.
301300In <option>IMMEDIATE</option> mode, foreign key constraints
302301are 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