File tree Expand file tree Collapse file tree 1 file changed +10
-6
lines changed Expand file tree Collapse file tree 1 file changed +10
-6
lines changed Original file line number Diff line number Diff line change 1- <!-- $PostgreSQL: pgsql/doc/src/sgml/release-9.0.sgml,v 2.45 2010/08/06 17:56:43 rhaas Exp $ -->
1+ <!-- $PostgreSQL: pgsql/doc/src/sgml/release-9.0.sgml,v 2.46 2010/08/06 18:55:24 tgl Exp $ -->
22
33 <sect1 id="release-9-0">
44 <title>Release 9.0</title>
9191 <listitem>
9292 <para>
9393 <link linkend="SQL-CREATETABLE-compatibility">Deferrable
94- unique constraints, now permit mass updates to unique keys.</link>
94+ unique constraints. Mass updates to unique keys are now possible
95+ without trickery.</link>
9596 </para>
9697 </listitem>
9798
11221123 </para>
11231124
11241125 <para>
1125- This allows <command>UPDATE tab SET col = col + 1</> to work on
1126- columns that have a unique indexes or are marked as primary key,
1127- but <literal>DEFERRABLE INITIALLY DEFERRED</> must be used to mark
1128- the constraint as deferred.
1126+ This allows <command>UPDATE tab SET col = col + 1</> to work reliably
1127+ on columns that have unique indexes or are marked as primary keys.
1128+ If the constraint is specified as <literal>DEFERRABLE</> it will be
1129+ checked at the end of the statement, rather than after each row is
1130+ updated. The constraint check may also be deferred until the end of the
1131+ current transaction, allowing updates to be spread over multiple SQL
1132+ commands.
11291133 </para>
11301134 </listitem>
11311135
You can’t perform that action at this time.
0 commit comments