Improve docs for n_distinct_inherited

David G. Johnston <david.g.johnston@gmail.com>

From: "David G. Johnston" <david.g.johnston@gmail.com>
To: David Rowley <dgrowleyml@gmail.com>
Cc: Chao Li <li.evan.chao@gmail.com>, PostgreSQL Developers <pgsql-hackers@lists.postgresql.org>
Date: 2025-10-13T04:09:52Z
Lists: pgsql-hackers
On Sunday, October 12, 2025, David Rowley <dgrowleyml@gmail.com> wrote:

>
> Updated patch attached.
>

The patch picked up a whole other set of changes as well.

How about:

n_distinct_inherited exists to allow the distinct value estimate to be
overwritten for the children-included statistics gathered for inheritance
parent tables, and for partitioned tables.

I can live with “ordinarily” with that wording, it is just the negative of
“children-included”.

David J.