mirror of
https://github.com/postgres/postgres.git
synced 2025-05-15 19:15:29 +03:00
Document use of partial indexes for partial unique constraints
Report by Tomáš Greif Backpatch through 9.4
This commit is contained in:
parent
6ea591ed46
commit
646deb603e
@ -546,7 +546,9 @@ CREATE TABLE products (
|
|||||||
|
|
||||||
<para>
|
<para>
|
||||||
Adding a unique constraint will automatically create a unique btree
|
Adding a unique constraint will automatically create a unique btree
|
||||||
index on the column or group of columns used in the constraint.
|
index on the column or group of columns used in the constraint.
|
||||||
|
A uniqueness constraint on only some rows can be enforced by creating
|
||||||
|
a <link linkend="indexes-partial">partial index</link>.
|
||||||
</para>
|
</para>
|
||||||
|
|
||||||
<indexterm>
|
<indexterm>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user