Re: Improve docs for n_distinct_inherited

From: David Rowley <dgrowleyml(at)gmail(dot)com>
To: "David G(dot) Johnston" <david(dot)g(dot)johnston(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: Re: Improve docs for n_distinct_inherited
Date: 2025-10-13 08:31:35
Message-ID: CAApHDvrNFnkMNvmuki=a4kcF0nbV+_EVQshSSoex891B+e1Ssg@mail.gmail.com
Views: Whole Thread | Raw Message | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

On Mon, 13 Oct 2025 at 17:09, David G. Johnston
<david(dot)g(dot)johnston(at)gmail(dot)com> wrote:
> 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”.

I've ended up reverting the text back to become more similar to how it
was but explicitly adding ", and for the statistics gathered for
partitioned tables.", since that's what the original bug report was
confused about.

I've kept the other document changes as they were in the previous patch.

David

Attachment Content-Type Size
doc_n_distinct_inherited_v5.patch application/octet-stream 3.1 KB

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Xuneng Zhou 2025-10-13 08:42:04 Re: pgstattuple: Use streaming read API in pgstatindex functions
Previous Message jian he 2025-10-13 08:08:54 Re: bug, ALTER TABLE call ATPostAlterTypeCleanup twice for the same relation