Skip to content

Commit 0650218

Browse files
committed
docs: remove outdated note about unique indexes
Patch by Josh Kupershmidt Backpatch through 9.5
1 parent bda58e9 commit 0650218

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

doc/src/sgml/indices.sgml

+1-5
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)