mirror of
https://github.com/postgres/postgres.git
synced 2025-07-26 01:22:12 +03:00
docs: remove outdated note about unique indexes
Patch by Josh Kupershmidt Backpatch through 9.5
This commit is contained in:
@ -655,11 +655,7 @@ CREATE UNIQUE INDEX <replaceable>name</replaceable> ON <replaceable>table</repla
|
|||||||
|
|
||||||
<note>
|
<note>
|
||||||
<para>
|
<para>
|
||||||
The preferred way to add a unique constraint to a table is
|
There's no need to manually
|
||||||
<literal>ALTER TABLE ... ADD CONSTRAINT</literal>. 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
|
|
||||||
create indexes on unique columns; doing so would just duplicate
|
create indexes on unique columns; doing so would just duplicate
|
||||||
the automatically-created index.
|
the automatically-created index.
|
||||||
</para>
|
</para>
|
||||||
|
Reference in New Issue
Block a user