From: Bruce Momjian Date: Wed, 3 Sep 2014 18:34:46 +0000 (-0400) Subject: Document use of partial indexes for partial unique constraints X-Git-Tag: REL9_4_BETA3~66 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=646deb603e0846d1efd4da84df412963dda68eec;p=thirdparty%2Fpostgresql.git Document use of partial indexes for partial unique constraints Report by Tomáš Greif Backpatch through 9.4 --- diff --git a/doc/src/sgml/ddl.sgml b/doc/src/sgml/ddl.sgml index 8ace8bd3a25..ceb83798c89 100644 --- a/doc/src/sgml/ddl.sgml +++ b/doc/src/sgml/ddl.sgml @@ -546,7 +546,9 @@ CREATE TABLE products ( 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 partial index.