git.postgresql.org Git - postgresql.git/commitdiff

git projects / postgresql.git / commitdiff
? search:
summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: a094c8f)
Doc: Improve clarity on partitioned table limitations
2020年9月30日 00:02:08 +0000 (13:02 +1300)
2020年9月30日 00:02:08 +0000 (13:02 +1300)
Explicitly mention that primary key constraints are also included in the
limitation that the constraint columns must be a superset of the partition key
columns.

Wording suggestion from Tom Lane.

Discussion: https://postgr.es/m/64062533.78364.1601415362244@mail.yahoo.com
Backpatch-through: 11, where unique constraints on partitioned tables were added


diff --git a/doc/src/sgml/ddl.sgml b/doc/src/sgml/ddl.sgml
index e890bdd10ad7291f92ac4a4a564c3891e8814cad..9fb2be6674f9543a30de74c635c2dada9cba3105 100644 (file)
--- a/doc/src/sgml/ddl.sgml
+++ b/doc/src/sgml/ddl.sgml
@@ -4056,8 +4056,8 @@ ALTER INDEX measurement_city_id_logdate_key
<listitem>
<para>
- Unique constraints on partitioned tables must include all the
- partition key columns. This limitation exists because
+ Unique constraints (and hence primary keys) 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>
This is the main PostgreSQL git repository.
RSS Atom

AltStyle によって変換されたページ (->オリジナル) /