From 06502185d8352258560b7fad82571d159dff8658 Mon Sep 17 00:00:00 2001 From: Bruce Momjian Date: Mon, 31 Aug 2015 17:05:22 -0400 Subject: [PATCH] docs: remove outdated note about unique indexes Patch by Josh Kupershmidt Backpatch through 9.5 --- doc/src/sgml/indices.sgml | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) 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.