From 646deb603e0846d1efd4da84df412963dda68eec Mon Sep 17 00:00:00 2001 From: Bruce Momjian Date: Wed, 3 Sep 2014 14:34:46 -0400 Subject: [PATCH] Document use of partial indexes for partial unique constraints MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Report by Tomáš Greif Backpatch through 9.4 --- doc/src/sgml/ddl.sgml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/doc/src/sgml/ddl.sgml b/doc/src/sgml/ddl.sgml index 8ace8bd3a2..ceb83798c8 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. -- 2.40.0