Re: Optimize MCV stats for sortable types and utilize sorted-order properties

From: David Geier <geidav(dot)pg(at)gmail(dot)com>
To: ZizhuanLiu X-MAN <44973863(at)qq(dot)com>, Ilia Evdokimov <ilya(dot)evdokimov(at)tantorlabs(dot)com>, pgsql-hackers <pgsql-hackers(at)lists(dot)postgresql(dot)org>
Subject: Re: Optimize MCV stats for sortable types and utilize sorted-order properties
Date: 2026-12-03 12:24:00
Message-ID: 74f75226-d9f3-44dc-9ac3-f99eeb35049c@gmail.com
Views: Whole Thread | Raw Message | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

>> I tested the v16 patch on master with JOB. JOB seemed like a good fit
>> for this patch because its queries contain many joins and WHERE col = const.
>>
>> I set default_statistics_target = 10000 to allow for larger MCV lists.
>> In this run, however, I did NOT see an overall improvement in planning time.
>>
>> Do you have a workload where you see a measureable improvement in
>> overall planning time?

>
> I tried running a few more tests to see if they met your requirements.
>

Are you using an optimized (release) build?

--
David Geier

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Kirill Reshke 2026-12-03 12:35:33 Re: several cases of float and integer mixup
Previous Message David Geier 2026-12-03 12:20:18 Re: Use local buffer for packed numerics