Re: Assertion failure in get_matching_part_pairs() with pruned partitions

From: shihao zhong <zhong950419(at)gmail(dot)com>
To: Ashutosh Bapat <ashutosh(dot)bapat(dot)oss(at)gmail(dot)com>
Cc: pgsql-hackers <pgsql-hackers(at)lists(dot)postgresql(dot)org>, Etsuro Fujita <etsuro(dot)fujita(at)gmail(dot)com>, Guofenglinux <guofenglinux(at)gmail(dot)com>
Subject: Re: Assertion failure in get_matching_part_pairs() with pruned partitions
Date: 2026-11-30 05:07:50
Message-ID: CAGRkXqTSqCq9BdE5CQSg-gsCOSHJ7EkAvuMk95ajyCE=cK+-=A@mail.gmail.com
Views: Whole Thread | Raw Message | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

Hi Ashutosh,

> Why only in the case of tables with default partitions?

Because only the default partition's bound depends on the other
partitions. Without one, ignoring a pruned partition is the same as if
it did not exist. No other partition's bound changes.

Matching it there would also lose partitionwise joins we have today.

Thanks,
Shihao

In response to

Browse pgsql-hackers by date

  From Date Subject
Previous Message Hayato Kuroda (Fujitsu) 2026-11-30 05:05:22 RE: Preserve conflict log table during upgrade