]> granicus.if.org Git - postgresql/commitdiff
Document use of partial indexes for partial unique constraints
authorBruce Momjian <bruce@momjian.us>
Wed, 3 Sep 2014 18:34:46 +0000 (14:34 -0400)
committerBruce Momjian <bruce@momjian.us>
Wed, 3 Sep 2014 18:34:46 +0000 (14:34 -0400)
Report by Tomáš Greif

Backpatch through 9.4

doc/src/sgml/ddl.sgml

index 8ace8bd3a2537849cdaac52b620baa8ed97a9095..ceb83798c899d1daaae27e55a090bd2ac7c06278 100644 (file)
@@ -546,7 +546,9 @@ CREATE TABLE products (
 
    <para>
     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>
 
    <indexterm>