Re: Fix --missing-stats-only false positive for partitioned expression indexes - Mailing list pgsql-hackers

From Baji Shaik
Subject Re: Fix --missing-stats-only false positive for partitioned expression indexes
Date
Msg-id CA+fm-ROVV=fYNqJOc09MCoA_ckjw=NRjk_2j22_giR55zaSnYw@mail.gmail.com
Whole thread
In response to Re: Fix --missing-stats-only false positive for partitioned expression indexes  (Nathan Bossart <nathandbossart@gmail.com>)
Responses Re: Fix --missing-stats-only false positive for partitioned expression indexes
List pgsql-hackers
On Tue, Jun 16, 2026 at 11:46 AM Nathan Bossart <nathandbossart@gmail.com> wrote:
We could remove the final "AND s.stainherit = p.inherited" in this part of
the clause, too, right?

Right. With NOT p.inherited already restricting this clause to the
non-inherited case, the stainherit filter is redundant since index stats
never have stainherit = true (only leaf indexes accumulate stats,
always with stainherit = false). I verified this holds across
partitioned, inherited, and mixed scenarios. Removed in v3.

v3 attached. 

Thanks,
Baji Shaik.
Attachment

pgsql-hackers by date:

Previous
From: Nathan Bossart
Date:
Subject: Re: Fix --missing-stats-only false positive for partitioned expression indexes
Next
From: Nathan Bossart
Date:
Subject: Re: Fix --missing-stats-only false positive for partitioned expression indexes