pg.ddx.io pgsql-committers@postgresql.org mailing list archivehelp / color / mirror / Atom feed
pgsql: Fix duplicate primary keys in partitions 2+ messages / 1 participants [nested] [flat]
* pgsql: Fix duplicate primary keys in partitions @ 2018-10-04 14:50 Alvaro Herrera <alvherre@alvh.no-ip.org> 0 siblings, 0 replies; 2+ messages in thread From: Alvaro Herrera @ 2018-10-04 14:50 UTC (permalink / raw) To: pgsql-committers@lists.postgresql.org 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 ------ master Details ------- https://git.postgresql.org/pg/commitdiff/fb9e93a2c5cf99e59a7e9362afd462f29e71bc1e 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(-) ^ permalink raw reply [nested|flat] 2+ messages in thread
* pgsql: Fix duplicate primary keys in partitions @ 2018-10-04 14:50 Alvaro Herrera <alvherre@alvh.no-ip.org> 0 siblings, 0 replies; 2+ messages in thread From: Alvaro Herrera @ 2018-10-04 14:50 UTC (permalink / raw) To: pgsql-committers@lists.postgresql.org 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(-) ^ permalink raw reply [nested|flat] 2+ messages in thread
end of thread, other threads:[~2018-10-04 14:50 UTC | newest] Thread overview: 2+ messages (download: mbox mbox.gz follow: Atom feed) -- links below jump to the message on this page -- 2018-10-04 14:50 pgsql: Fix duplicate primary keys in partitions Alvaro Herrera <alvherre@alvh.no-ip.org> 2018-10-04 14:50 pgsql: Fix duplicate primary keys in partitions Alvaro Herrera <alvherre@alvh.no-ip.org>
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