1
0
mirror of https://github.com/postgres/postgres.git synced 2025-07-31 22:04:40 +03:00

Mention limitation of unique in partitioned tables

Per gripe from Phil Bayer.

Authors: Amit Langote and others
Discussion: https://postgr.es/m/156236160709.1192.4498528196556144085@wrigleys.postgresql.org
This commit is contained in:
Alvaro Herrera
2019-07-10 08:58:41 -04:00
parent 2ede93de9e
commit 5918b82614

View File

@ -3386,6 +3386,15 @@ ALTER INDEX measurement_city_id_logdate_key
</para>
</listitem>
<listitem>
<para>
Unique constraints on partitioned tables must include all the
partition key columns. This limitation exists because
<productname>PostgreSQL</productname> can only enforce
uniqueness in each partition individually.
</para>
</listitem>
<listitem>
<para>
While primary keys are supported on partitioned tables, foreign