Re: Postgres 11: Table Partitioning and Primary Keys
Tom Lane <tgl@sss.pgh.pa.us>
From: Tom Lane <tgl@sss.pgh.pa.us>
To: Michael Paquier <michael@paquier.xyz>
Cc: Bruce Momjian <bruce@momjian.us>, phil.bayer@gmail.com,
pgsql-docs@lists.postgresql.org,
PostgreSQL-development <pgsql-hackers@postgresql.org>
Date: 2019-07-09T03:10:51Z
Lists: pgsql-hackers, pgsql-docs
Michael Paquier <michael@paquier.xyz> writes: > Attached is an idea of patch for the documentation, using this > wording: > + <listitem> > + <para> > + When defining a primary key on a partitioned table, the primary > + key column must be included in the partition key. > + </para> > + </listitem> Isn't it the other way around, that the partition key column(s) must be included in the primary key? Maybe I'm confused, but it seems like we couldn't enforce PK uniqueness otherwise. regards, tom lane
Commits
-
Mention limitation of unique in partitioned tables
- 5918b8261451 11.5 landed
- ec4eaab78b07 13.0 landed
- 220857a87508 12.0 landed