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

Commit 18d51c0

Browse files
committed
Fix omission in partitioning limitation documentation
UNIQUE and PRIMARY KEY constraints can be created on ONLY the partitioned table. We already had an example demonstrating that, but forgot to mention it in the documentation of the limits of partitioning. Author: Laurenz Albe Reviewed-By: shihao zhong, Shubham Khanna, Ashutosh Bapat Backpatch-through: 12 Discussion: https://postgr.es/m/167299368731.659.16130012959616771853@wrigleys.postgresql.org
1 parent 469d836 commit 18d51c0

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

doc/src/sgml/ddl.sgml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4144,7 +4144,9 @@ ALTER INDEX measurement_city_id_logdate_key
41444144
Using <literal>ONLY</literal> to add or drop a constraint on only
41454145
the partitioned table is supported as long as there are no
41464146
partitions. Once partitions exist, using <literal>ONLY</literal>
4147-
will result in an error. Instead, constraints on the partitions
4147+
will result in an error for any constraints other than
4148+
<literal>UNIQUE</literal> and <literal>PRIMARY KEY</literal>.
4149+
Instead, constraints on the partitions
41484150
themselves can be added and (if they are not present in the parent
41494151
table) dropped.
41504152
</para>

0 commit comments

Comments
 (0)