Fix restore of partitions with exclusion constraints
authorÁlvaro Herrera <alvherre@kurilemu.de>
Mon, 20 Jul 2026 15:21:20 +0000 (17:21 +0200)
committerÁlvaro Herrera <alvherre@kurilemu.de>
Mon, 20 Jul 2026 15:21:20 +0000 (17:21 +0200)
commitd049a31a4cd2d43739ae0039002c24c63a24d48c
treecdd990a6c27ff503fd8c5c37e6df54046d6b8256
parentd5751c33cc3e842b20dbe67545fd2c850be8fa59
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
src/backend/catalog/index.c
src/test/regress/expected/indexing.out
src/test/regress/sql/indexing.sql