Re: Postgres 11: Table Partitioning and Primary Keys
"David G. Johnston" <[email protected]>
| Newsgroups | gmane.comp.db.postgresql.devel.general,gmane.comp.db.postgresql.devel.documentation |
|---|---|
| Message-ID | <CAKFQuwZfzNGTTo4zVn0Q=wfXujfaKdFbn7v5eAp20Eud7r95cA@mail.gmail.com> |
On Mon, Jul 8, 2019 at 7:59 PM Michael Paquier <[email protected]> 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.