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

Baji Shaik <baji.pgdev@gmail.com>

From: Baji Shaik <baji.pgdev@gmail.com>
To: Nathan Bossart <nathandbossart@gmail.com>
Cc: PostgreSQL-development <pgsql-hackers@lists.postgresql.org>
Date: 2026-06-16T16:26:28Z
Lists: pgsql-hackers

Attachments

On Tue, Jun 16, 2026 at 11:14 AM Nathan Bossart <nathandbossart@gmail.com>
wrote:

> I'm curious why you added this check to the beginning and surrounded the
> rest with parentheses.  Wouldn't it be better to follow the example of the
> surrounding clauses and an "AND NOT p.inherited" somewhere in the middle?


Good point. v2 moves the check inside the EXISTS as
"AND NOT p.inherited", consistent with how the inheritance
sections below handle it.

v2 attached.

Thanks,
Baji Shaik.

Commits

  1. vacuumdb: Fix --missing-stats-only for partitioned indexes.