From: | Tomas Vondra <tomas(dot)vondra(at)enterprisedb(dot)com> |
---|---|
To: | Justin Pryzby <pryzby(at)telsasoft(dot)com> |
Cc: | Zhihong Yu <zyu(at)yugabyte(dot)com>, Jaime Casanova <jcasanov(at)systemguards(dot)com(dot)ec>, pgsql-hackers(at)postgresql(dot)org |
Subject: | Re: extended stats on partitioned tables |
Date: | 2021-12-13 19:52:53 |
Message-ID: | 928ad999-6680-bf72-450c-ae96d569f6ba@enterprisedb.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-hackers |
On 12/13/21 14:48, Justin Pryzby wrote:
> On Sun, Dec 12, 2021 at 10:29:39PM +0100, Tomas Vondra wrote:
>>> In your 0003 patch, the "if inh: break" isn't removed from examine_variable(),
>>> but the corresponding thing is removed everywhere else.
>>
>> Ah, you're right. And it wasn't updated in the 0002 patch either - it
>> should do the relkind check too, to allow partitioned tables. Fixed.
>
> I think you fixed it in 0002 (thanks) but still wasn't removed from 0003?
>
D'oh! Those repeated rebase conflicts got me quite confused.
> In these comments:
> + * When dealing with regular inheritance trees, ignore extended stats
> + * (which were built without data from child rels, and thus do not
> + * represent them). For partitioned tables data from partitions are
> + * in the stats (and there's no data in the non-leaf relations), so
> + * in this case we do consider extended stats.
>
> I suggest to add a comment after "For partitioned tables".
>
I've reworded the comment a bit, hopefully it's a bit clearer now.
regards
--
Tomas Vondra
EnterpriseDB: http://www.enterprisedb.com
The Enterprise PostgreSQL Company
Attachment | Content-Type | Size |
---|---|---|
0001-Ignore-extended-statistics-for-inheritance--20211213.patch | text/x-patch | 7.6 KB |
0002-Build-inherited-extended-stats-on-partition-20211213.patch | text/x-patch | 9.6 KB |
0003-Add-stxdinherit-flag-to-pg_statistic_ext_da-20211213.patch | text/x-patch | 38.0 KB |
0004-Refactor-parent-ACL-check-20211213.patch | text/x-patch | 6.4 KB |
From | Date | Subject | |
---|---|---|---|
Next Message | Andrew Dunstan | 2021-12-13 19:53:37 | Re: conchuela has some SSL issues |
Previous Message | Huansong Fu | 2021-12-13 19:42:11 | Re: bugfix: invalid bit/varbit input causes the log file to be unreadable |