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

Commit ec4eaab

Browse files
committed
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
1 parent fa19a08 commit ec4eaab

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

doc/src/sgml/ddl.sgml

+9
Original file line numberDiff line numberDiff line change
@@ -4003,6 +4003,15 @@ ALTER INDEX measurement_city_id_logdate_key
40034003
</para>
40044004
</listitem>
40054005

4006+
<listitem>
4007+
<para>
4008+
Unique constraints on partitioned tables must include all the
4009+
partition key columns. This limitation exists because
4010+
<productname>PostgreSQL</productname> can only enforce
4011+
uniqueness in each partition individually.
4012+
</para>
4013+
</listitem>
4014+
40064015
<listitem>
40074016
<para>
40084017
<literal>BEFORE ROW</literal> triggers, if necessary, must be defined

0 commit comments

Comments
 (0)