diff --git a/doc/src/sgml/ref/create_table.sgml b/doc/src/sgml/ref/create_table.sgml
index b9eeb0117ca..7d00d22c646 100644
--- a/doc/src/sgml/ref/create_table.sgml
+++ b/doc/src/sgml/ref/create_table.sgml
@@ -720,9 +720,11 @@ FROM ( { numeric_literal |
The UNIQUE constraint specifies that a
group of one or more columns of a table can contain
- only unique values. The behavior of the unique table constraint
- is the same as that for column constraints, with the additional
- capability to span multiple columns.
+ only unique values. The behavior of a unique table constraint
+ is the same as that of a unique column constraint, with the
+ additional capability to span multiple columns. The constraint
+ therefore enforces that any two rows must differ in at least one
+ of these columns.
@@ -731,10 +733,10 @@ FROM ( { numeric_literal |
- Each unique table constraint must name a set of columns that is
+ Each unique constraint should name a set of columns that is
different from the set of columns named by any other unique or
- primary key constraint defined for the table. (Otherwise it
- would just be the same constraint listed twice.)
+ primary key constraint defined for the table. (Otherwise, redundant
+ unique constraints will be discarded.)
@@ -759,11 +761,17 @@ FROM ( { numeric_literal |
PRIMARY KEY enforces the same data constraints as
- a combination of UNIQUE> and NOT NULL>, but
+ a combination of UNIQUE> and NOT NULL>. However,
identifying a set of columns as the primary key also provides metadata
about the design of the schema, since a primary key implies that other
tables can rely on this set of columns as a unique identifier for rows.
+
+
+ Adding a PRIMARY KEY constraint will automatically
+ create a unique btree index on the column or group of columns used in the
+ constraint.
+