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

Commit049a779

Browse files
committed
docs: remove outdated note about unique indexes
Patch by Josh KupershmidtBackpatch through 9.5
1 parentcf25b2a commit049a779

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

‎doc/src/sgml/indices.sgml

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -655,11 +655,7 @@ CREATE UNIQUE INDEX <replaceable>name</replaceable> ON <replaceable>table</repla
655655

656656
<note>
657657
<para>
658-
The preferred way to add a unique constraint to a table is
659-
<literal>ALTER TABLE ... ADD CONSTRAINT</literal>. The use of
660-
indexes to enforce unique constraints could be considered an
661-
implementation detail that should not be accessed directly.
662-
One should, however, be aware that there's no need to manually
658+
There's no need to manually
663659
create indexes on unique columns; doing so would just duplicate
664660
the automatically-created index.
665661
</para>

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp