From: Bruce Momjian Date: Mon, 31 Aug 2015 21:05:23 +0000 (-0400) Subject: docs: remove outdated note about unique indexes X-Git-Tag: REL9_6_BETA1~1424 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=049a7799dfce096923da27a9b0e4a3c7a0a47104;p=postgresql docs: remove outdated note about unique indexes Patch by Josh Kupershmidt Backpatch through 9.5 --- diff --git a/doc/src/sgml/indices.sgml b/doc/src/sgml/indices.sgml index 309fd1269b..2d131c9109 100644 --- a/doc/src/sgml/indices.sgml +++ b/doc/src/sgml/indices.sgml @@ -655,11 +655,7 @@ CREATE UNIQUE INDEX name ON table - The preferred way to add a unique constraint to a table is - ALTER TABLE ... ADD CONSTRAINT. The use of - indexes to enforce unique constraints could be considered an - implementation detail that should not be accessed directly. - One should, however, be aware that there's no need to manually + There's no need to manually create indexes on unique columns; doing so would just duplicate the automatically-created index.