pgsql: Fix restore of partitions with exclusion constraints - Mailing list pgsql-committers

From Álvaro Herrera
Subject pgsql: Fix restore of partitions with exclusion constraints
Date
Msg-id E1wlppD-000000002h9-1GHD@gemulon.postgresql.org
Whole thread
List pgsql-committers
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(-)


pgsql-committers by date:

Previous
From: Fujii Masao
Date:
Subject: pgsql: Avoid ERROR in recovery target GUC assign hooks
Next
From: Robert Haas
Date:
Subject: pgsql: doc: Granting TRIGGER or REFERENCES on table is dangerous.