From: Alvaro Herrera Date: Wed, 10 Jul 2019 12:58:41 +0000 (-0400) Subject: Mention limitation of unique in partitioned tables X-Git-Tag: REL_11_5~49 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=5918b82614513e1262c6c3ed286e4e1212a01bc3;p=thirdparty%2Fpostgresql.git 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 --- diff --git a/doc/src/sgml/ddl.sgml b/doc/src/sgml/ddl.sgml index a49a14cac1d..764d24a2d71 100644 --- a/doc/src/sgml/ddl.sgml +++ b/doc/src/sgml/ddl.sgml @@ -3386,6 +3386,15 @@ ALTER INDEX measurement_city_id_logdate_key + + + Unique constraints on partitioned tables must include all the + partition key columns. This limitation exists because + PostgreSQL can only enforce + uniqueness in each partition individually. + + + While primary keys are supported on partitioned tables, foreign