summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBruce Momjian <bruce@momjian.us>2014-09-03 14:34:46 -0400
committerBruce Momjian <bruce@momjian.us>2014-09-03 14:34:46 -0400
commit646deb603e0846d1efd4da84df412963dda68eec (patch)
treed5581c0a6d7b5ea73ffdbbdeb607599f8f223dfc
parent6ea591ed4619a29e57369fef905d2160bd6e5438 (diff)
Document use of partial indexes for partial unique constraints
Report by Tomáš Greif Backpatch through 9.4
-rw-r--r--doc/src/sgml/ddl.sgml4
1 files changed, 3 insertions, 1 deletions
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 (
<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>