Improve docs for n_distinct_inherited

From: "David G(dot) Johnston" <david(dot)g(dot)johnston(at)gmail(dot)com>
To: David Rowley <dgrowleyml(at)gmail(dot)com>
Cc: Chao Li <li(dot)evan(dot)chao(at)gmail(dot)com>, PostgreSQL Developers <pgsql-hackers(at)lists(dot)postgresql(dot)org>
Subject: Improve docs for n_distinct_inherited
Date: 2025-10-13 04:09:52
Message-ID: CAKFQuwaZfciZxUg+E4t0tokLvXxbHJLhMHARX+zb6Vq7KZoiOQ@mail.gmail.com
Views: Whole Thread | Raw Message | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

On Sunday, October 12, 2025, David Rowley <dgrowleyml(at)gmail(dot)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.

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Tatsuo Ishii 2025-10-13 04:43:32 Re: Add RESPECT/IGNORE NULLS and FROM FIRST/LAST options
Previous Message Chao Li 2025-10-13 04:01:01 Re: Improve docs for n_distinct_inherited