BUG #16521: n_distinct_inherited does not affect child partitions when set on main partition

From: PG Bug reporting form <noreply(at)postgresql(dot)org>
To: pgsql-bugs(at)lists(dot)postgresql(dot)org
Cc: klaudie(dot)willis(at)protonmail(dot)com
Subject: BUG #16521: n_distinct_inherited does not affect child partitions when set on main partition
Date: 2020-06-30 20:02:54
Message-ID: 16521-e1ea71bb200b6bb3@postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-bugs

The following bug has been logged on the website:

Bug reference: 16521
Logged by: klaudie willis
Email address: klaudie(dot)willis(at)protonmail(dot)com
PostgreSQL version: 13beta1
Operating system: Windows
Description:

From documentation: "while n_distinct_inherited affects the statistics
gathered for the table plus its inheritance children"

However, as my own experience has shown me, and as illustrated here:
https://www.db-fiddle.com/f/d2ckNd9eyrGAwvdkr8H5i/0 I cannot see that
"_n_distinct_inherited" affects child partitions when set on the main
partition table. Am I missing something really simple here?

best regards
Klaudie

Responses

Browse pgsql-bugs by date

  From Date Subject
Next Message David Rowley 2020-06-30 22:56:31 Re: BUG #16521: n_distinct_inherited does not affect child partitions when set on main partition
Previous Message Jehan-Guillaume de Rorthais 2020-06-30 19:47:26 Re: [BUG][PATCH] ecpg crash with bytea type and cursors