]> granicus.if.org Git - postgresql/commitdiff
Mention limitation of unique in partitioned tables
authorAlvaro Herrera <alvherre@alvh.no-ip.org>
Wed, 10 Jul 2019 12:58:41 +0000 (08:58 -0400)
committerAlvaro Herrera <alvherre@alvh.no-ip.org>
Wed, 10 Jul 2019 13:13:50 +0000 (09:13 -0400)
Per gripe from Phil Bayer.

Authors: Amit Langote and others
Discussion: https://postgr.es/m/156236160709.1192.4498528196556144085@wrigleys.postgresql.org

doc/src/sgml/ddl.sgml

index a49a14cac1d5f4ec8a2640d567de4c6d168e4fcd..764d24a2d71a0607b58e6686f1131d7737ef1d05 100644 (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