Re: Postgres 11: Table Partitioning and Primary Keys
David G. Johnston <david.g.johnston@gmail.com>
From: "David G. Johnston" <david.g.johnston@gmail.com>
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:12:18Z
Lists: pgsql-hackers, pgsql-docs
On Mon, Jul 8, 2019 at 7:59 PM Michael Paquier <michael@paquier.xyz> wrote: > 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> > If somebody has any better idea for that paragraph, please feel free. > Reads a bit backward. How about: "As uniqueness can only be enforced within an individual partition when defining a primary key on a partitioned table all columns present in the partition key must also exist in the primary key." David J.
Commits
-
Mention limitation of unique in partitioned tables
- 5918b8261451 11.5 landed
- ec4eaab78b07 13.0 landed
- 220857a87508 12.0 landed