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

Commita209b98

Browse files
committed
Fix inaccurate description of deferrable unique constraints, per Dean Rasheed.
1 parent7ae6163 commita209b98

File tree

1 file changed

+10
-6
lines changed

1 file changed

+10
-6
lines changed

‎doc/src/sgml/release-9.0.sgml

Lines changed: 10 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
<!-- $PostgreSQL: pgsql/doc/src/sgml/release-9.0.sgml,v 2.45 2010/08/0617:56:43 rhaas Exp $ -->
1+
<!-- $PostgreSQL: pgsql/doc/src/sgml/release-9.0.sgml,v 2.46 2010/08/0618:55:24 tgl Exp $ -->
22

33
<sect1 id="release-9-0">
44
<title>Release 9.0</title>
@@ -91,7 +91,8 @@
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

@@ -1122,10 +1123,13 @@
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

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp