Re: Postgres 11: Table Partitioning and Primary Keys
Michael Paquier <michael@paquier.xyz>
From: Michael Paquier <michael@paquier.xyz>
To: Tom Lane <tgl@sss.pgh.pa.us>
Cc: Bruce Momjian <bruce@momjian.us>, phil.bayer@gmail.com, pgsql-docs@lists.postgresql.org, PostgreSQL-development <pgsql-hackers@postgresql.org>
Date: 2019-07-09T06:49:24Z
Lists: pgsql-hackers, pgsql-docs
On Mon, Jul 08, 2019 at 11:10:51PM -0400, Tom Lane wrote: > 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. Yes you are right. The full column list of the partition key needs to be included in the constraint, but that's not true the other way around. -- Michael
Commits
-
Mention limitation of unique in partitioned tables
- 5918b8261451 11.5 landed
- ec4eaab78b07 13.0 landed
- 220857a87508 12.0 landed