Commit 2b888647 authored by David Rowley's avatar David Rowley

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
parent a094c8ff
...@@ -4056,8 +4056,8 @@ ALTER INDEX measurement_city_id_logdate_key ...@@ -4056,8 +4056,8 @@ ALTER INDEX measurement_city_id_logdate_key
<listitem> <listitem>
<para> <para>
Unique constraints on partitioned tables must include all the Unique constraints (and hence primary keys) on partitioned tables must
partition key columns. This limitation exists because include all the partition key columns. This limitation exists because
<productname>PostgreSQL</productname> can only enforce <productname>PostgreSQL</productname> can only enforce
uniqueness in each partition individually. uniqueness in each partition individually.
</para> </para>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment