Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
Skip to content

Commit 5c7afb4

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 09b29ca commit 5c7afb4

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
@@ -4050,8 +4050,8 @@ ALTER INDEX measurement_city_id_logdate_key
40504050

40514051
<listitem>
40524052
<para>
4053-
Unique constraints on partitioned tables must include all the
4054-
partition key columns. This limitation exists because
4053+
Unique constraints (and hence primary keys) on partitioned tables must
4054+
include all the partition key columns. This limitation exists because
40554055
<productname>PostgreSQL</productname> can only enforce
40564056
uniqueness in each partition individually.
40574057
</para>

0 commit comments

Comments
 (0)