From: Alvaro Herrera <alvherre@2ndquadrant.com>
To: Alex V. <in_flight@pclovers.ru>
Cc: pgsql-general <pgsql-general@lists.postgresql.org>
Cc: tgl <tgl@sss.pgh.pa.us>
Subject: Re: Table partition with primary key in 11.3
Date: Thu, 6 Jun 2019 13:03:26 -0400
Message-ID: <20190606170326.GA5550@alvherre.pgsql> (raw)
In-Reply-To: <1985070938.2403.1559817000895.JavaMail.zimbra@pclovers.ru>
On 2019-Jun-06, Alex V. wrote:
> I think that your position about primary keys in partitional tables is
> not right.
>
> If we see regular table, one-field primary key is cross-table unique.
> In partitional tables for users view we MUST also seen unique
> one-field primary key because this is user requirement and another
> keys can destroy logic between regular and partitional tables and
> functionality of partitioning becomes useless.
> For administrators of table we not-MAY, but MUST see one-field unique
> primary key in cross-table realisation.
> All another realizations are plugging holes in a hurry and non-logical
> at global review of engine.
If you are saying that you think that Postgres should support primary
keys that don't necessarily overlap partition keys, then I agree with
you. Please send a patch to implement that capability.
--
Álvaro Herrera https://www.2ndQuadrant.com/
PostgreSQL Development, 24x7 Support, Remote DBA, Training & Services
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-general@postgresql.org
Cc: alvherre@2ndquadrant.com, in_flight@pclovers.ru, tgl@sss.pgh.pa.us
Subject: Re: Table partition with primary key in 11.3
In-Reply-To: <20190606170326.GA5550@alvherre.pgsql>
References: <1985070938.2403.1559817000895.JavaMail.zimbra@pclovers.ru> <20190606170326.GA5550@alvherre.pgsql>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox