From: Alvaro Herrera <alvherre@alvh.no-ip.org>
To: pgsql-committers@lists.postgresql.org
Subject: pgsql: Fix duplicate primary keys in partitions
Date: Thu, 04 Oct 2018 14:50:10 +0000
Message-ID: <E1g84x8-0005zx-9E@gemulon.postgresql.org> (raw)
Fix duplicate primary keys in partitions
When using the CREATE TABLE .. PARTITION OF syntax, it's possible to
cause a partition to get two primary keys if the parent already has one.
Tighten the check to disallow that.
Reported-by: Rajkumar Raghuwanshi
Author: Amul Sul
Discussion: https://postgr.es/m/CAKcux6=OnSV3-qd8Gb6W=KPPwcCz6Fe_O_MQYjTa24__Xn8XxA@mail.gmail.com
Branch
------
REL_11_STABLE
Details
-------
https://git.postgresql.org/pg/commitdiff/ff347f8aff04865680c19ffc818460bb2afaad5b
Modified Files
--------------
src/backend/catalog/index.c | 10 +++++-----
src/test/regress/expected/indexing.out | 18 +++++++++++++++++-
src/test/regress/sql/indexing.sql | 9 ++++++++-
3 files changed, 30 insertions(+), 7 deletions(-)
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 using the --to and --cc options:
reply via email
To: pgsql-committers@postgresql.org
Cc: alvherre@alvh.no-ip.org, pgsql-committers@lists.postgresql.org
Subject: Re: pgsql: Fix duplicate primary keys in partitions
In-Reply-To: <E1g84x8-0005zx-9E@gemulon.postgresql.org>
* 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