Re: Fix --missing-stats-only false positive for partitioned expression indexes

From: Nathan Bossart <nathandbossart(at)gmail(dot)com>
To: Corey Huinker <corey(dot)huinker(at)gmail(dot)com>
Cc: Baji Shaik <baji(dot)pgdev(at)gmail(dot)com>, PostgreSQL-development <pgsql-hackers(at)lists(dot)postgresql(dot)org>
Subject: Re: Fix --missing-stats-only false positive for partitioned expression indexes
Date: 2026-06-16 16:46:40
Message-ID: ajF98PlhOWkc3pWf@nathan
Views: Whole Thread | Raw Message | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

On Tue, Jun 16, 2026 at 12:40:11PM -0400, Corey Huinker wrote:
> On Tue, Jun 16, 2026 at 12:26 PM Baji Shaik <baji(dot)pgdev(at)gmail(dot)com> wrote:
>> Good point. v2 moves the check inside the EXISTS as
>> "AND NOT p.inherited", consistent with how the inheritance
>> sections below handle it.
>
> The refactor I was testing differed only in having the new qual one line
> higher (above the attstattarget check vs below it). Looks good to me.

We could remove the final "AND s.stainherit = p.inherited" in this part of
the clause, too, right?

--
nathan

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Baji Shaik 2026-06-16 17:09:00 Re: Fix --missing-stats-only false positive for partitioned expression indexes
Previous Message Corey Huinker 2026-06-16 16:40:11 Re: Fix --missing-stats-only false positive for partitioned expression indexes