agora inbox for pgsql-committers@postgresql.org  
help / color / mirror / Atom feed
From: Álvaro Herrera <alvherre@kurilemu.de>
To: pgsql-committers@lists.postgresql.org
Subject: pgsql: Fix restore of partitions with exclusion constraints
Date: Mon, 20 Jul 2026 15:22:35 +0000
Message-ID: <E1wlppD-000000002h9-1GHD@gemulon.postgresql.org> (raw)

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(-)



view thread (4+ messages)  latest in thread

Message-ID: <E1wlppD-000000002h9-1GHD@gemulon.postgresql.org>
Permalink:  ../E1wlppD-000000002h9-1GHD@gemulon.postgresql.org/
Also on:    postgresql.org/message-id/E1wlppD-000000002h9-1GHD@gemulon.postgresql.org

reply

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@kurilemu.de, pgsql-committers@lists.postgresql.org
  Subject: Re: pgsql: Fix restore of partitions with exclusion constraints
  In-Reply-To: <E1wlppD-000000002h9-1GHD@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 agora; see mirroring instructions
for how to clone and mirror all data and code used for this inbox