Skip to content

Commit ab0c9c0

Browse files
committed
Doc: Improve clarity on partitioned table limitations
Explicitly mention that primary key constraints are also included in the limitation that the constraint columns must be a superset of the partition key columns. Wording suggestion from Tom Lane. Discussion: https://postgr.es/m/64062533.78364.1601415362244@mail.yahoo.com Backpatch-through: 11, where unique constraints on partitioned tables were added
1 parent c2a29ae commit ab0c9c0

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

doc/src/sgml/ddl.sgml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3460,8 +3460,8 @@ ALTER INDEX measurement_city_id_logdate_key
34603460

34613461
<listitem>
34623462
<para>
3463-
Unique constraints on partitioned tables must include all the
3464-
partition key columns. This limitation exists because
3463+
Unique constraints (and hence primary keys) on partitioned tables must
3464+
include all the partition key columns. This limitation exists because
34653465
<productname>PostgreSQL</productname> can only enforce
34663466
uniqueness in each partition individually.
34673467
</para>

0 commit comments

Comments
 (0)