Skip to content

Commit 4b22401

Browse files
committed
Document use of partial indexes for partial unique constraints
Report by Tomáš Greif Backpatch through 9.4
1 parent 4011f8c commit 4b22401

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

doc/src/sgml/ddl.sgml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -546,7 +546,9 @@ CREATE TABLE products (
546546

547547
<para>
548548
Adding a unique constraint will automatically create a unique btree
549-
index on the column or group of columns used in the constraint.
549+
index on the column or group of columns used in the constraint.
550+
A uniqueness constraint on only some rows can be enforced by creating
551+
a <link linkend="indexes-partial">partial index</link>.
550552
</para>
551553

552554
<indexterm>

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy