agora inbox for pgsql-committers@postgresql.orghelp / color / mirror / Atom feed
pgsql: Fix restore of partitions with exclusion constraints 4+ messages / 1 participants [nested] [flat]
* pgsql: Fix restore of partitions with exclusion constraints @ 2026-07-20 15:22 Álvaro Herrera <alvherre@kurilemu.de> 0 siblings, 0 replies; 4+ messages in thread From: Álvaro Herrera @ 2026-07-20 15:22 UTC (permalink / raw) To: pgsql-committers@lists.postgresql.org Fix restore of partitions with exclusion constraints Commit 8c852ba9a4 allowed exclusion constraints to be added to partitioned tables, but wasn't careful to verify that pg_restore worked correctly for them. Fix that by making CompareIndexInfo() more selective about what needs to be rejected. Author: Japin Li <japinli@hotmail.com> Reported-by: Keith Paskett <keith.paskett@logansw.com> Discussion: https://postgr.es/m/2A40921D-83AB-411E-ADA6-7E509A46F1E4@logansw.com Branch ------ master Details ------- https://git.postgresql.org/pg/commitdiff/d049a31a4cd2d43739ae0039002c24c63a24d48c Modified Files -------------- src/backend/catalog/index.c | 16 ++++++++++++++-- src/test/regress/expected/indexing.out | 15 +++++++++++++++ src/test/regress/sql/indexing.sql | 14 ++++++++++++++ 3 files changed, 43 insertions(+), 2 deletions(-) ^ permalink raw reply [nested|flat] 4+ messages in thread
* pgsql: Fix restore of partitions with exclusion constraints @ 2026-07-20 15:22 Álvaro Herrera <alvherre@kurilemu.de> 0 siblings, 0 replies; 4+ messages in thread From: Álvaro Herrera @ 2026-07-20 15:22 UTC (permalink / raw) To: pgsql-committers@lists.postgresql.org Fix restore of partitions with exclusion constraints Commit 8c852ba9a4 allowed exclusion constraints to be added to partitioned tables, but wasn't careful to verify that pg_restore worked correctly for them. Fix that by making CompareIndexInfo() more selective about what needs to be rejected. Author: Japin Li <japinli@hotmail.com> Reported-by: Keith Paskett <keith.paskett@logansw.com> Discussion: https://postgr.es/m/2A40921D-83AB-411E-ADA6-7E509A46F1E4@logansw.com Branch ------ REL_19_STABLE Details ------- https://git.postgresql.org/pg/commitdiff/2b2c2492c2b053a5d7b347abfb2e80127841b9bf Modified Files -------------- src/backend/catalog/index.c | 16 ++++++++++++++-- src/test/regress/expected/indexing.out | 15 +++++++++++++++ src/test/regress/sql/indexing.sql | 14 ++++++++++++++ 3 files changed, 43 insertions(+), 2 deletions(-) ^ permalink raw reply [nested|flat] 4+ messages in thread
* pgsql: Fix restore of partitions with exclusion constraints @ 2026-07-20 15:22 Álvaro Herrera <alvherre@kurilemu.de> 0 siblings, 0 replies; 4+ messages in thread From: Álvaro Herrera @ 2026-07-20 15:22 UTC (permalink / raw) To: pgsql-committers@lists.postgresql.org Fix restore of partitions with exclusion constraints Commit 8c852ba9a4 allowed exclusion constraints to be added to partitioned tables, but wasn't careful to verify that pg_restore worked correctly for them. Fix that by making CompareIndexInfo() more selective about what needs to be rejected. Author: Japin Li <japinli@hotmail.com> Reported-by: Keith Paskett <keith.paskett@logansw.com> Discussion: https://postgr.es/m/2A40921D-83AB-411E-ADA6-7E509A46F1E4@logansw.com Branch ------ REL_18_STABLE Details ------- https://git.postgresql.org/pg/commitdiff/19e3aa704126f34f8fa4b36109478a7e6727a5e5 Modified Files -------------- src/backend/catalog/index.c | 16 ++++++++++++++-- src/test/regress/expected/indexing.out | 15 +++++++++++++++ src/test/regress/sql/indexing.sql | 14 ++++++++++++++ 3 files changed, 43 insertions(+), 2 deletions(-) ^ permalink raw reply [nested|flat] 4+ messages in thread
* pgsql: Fix restore of partitions with exclusion constraints @ 2026-07-20 15:22 Álvaro Herrera <alvherre@kurilemu.de> 0 siblings, 0 replies; 4+ messages in thread From: Álvaro Herrera @ 2026-07-20 15:22 UTC (permalink / raw) To: pgsql-committers@lists.postgresql.org Fix restore of partitions with exclusion constraints Commit 8c852ba9a4 allowed exclusion constraints to be added to partitioned tables, but wasn't careful to verify that pg_restore worked correctly for them. Fix that by making CompareIndexInfo() more selective about what needs to be rejected. Author: Japin Li <japinli@hotmail.com> Reported-by: Keith Paskett <keith.paskett@logansw.com> Discussion: https://postgr.es/m/2A40921D-83AB-411E-ADA6-7E509A46F1E4@logansw.com Branch ------ REL_17_STABLE Details ------- https://git.postgresql.org/pg/commitdiff/1d6c654c8189cf198bc4059a9a0c9a51502e4b5f Modified Files -------------- src/backend/catalog/index.c | 16 ++++++++++++++-- src/test/regress/expected/indexing.out | 15 +++++++++++++++ src/test/regress/sql/indexing.sql | 14 ++++++++++++++ 3 files changed, 43 insertions(+), 2 deletions(-) ^ permalink raw reply [nested|flat] 4+ messages in thread
end of thread, other threads:[~2026-07-20 15:22 UTC | newest] Thread overview: 4+ messages (download: mbox mbox.gz follow: Atom feed) -- links below jump to the message on this page -- 2026-07-20 15:22 pgsql: Fix restore of partitions with exclusion constraints Álvaro Herrera <alvherre@kurilemu.de> 2026-07-20 15:22 pgsql: Fix restore of partitions with exclusion constraints Álvaro Herrera <alvherre@kurilemu.de> 2026-07-20 15:22 pgsql: Fix restore of partitions with exclusion constraints Álvaro Herrera <alvherre@kurilemu.de> 2026-07-20 15:22 pgsql: Fix restore of partitions with exclusion constraints Álvaro Herrera <alvherre@kurilemu.de>
This inbox is served by agora; see mirroring instructions for how to clone and mirror all data and code used for this inbox