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

From: Ilia Evdokimov <ilya(dot)evdokimov(at)tantorlabs(dot)com>
To: ZizhuanLiu X-MAN <44973863(at)qq(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-01 12:05:27
Message-ID: a7f95276-20e5-4c69-8180-57f28f3bc6ed@tantorlabs.com
Views: Whole Thread | Raw Message | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

Hi,

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?

--
Best regards,
Ilia Evdokimov,
Tantor Labs LLC,
https://tantorlabs.com/

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message Dilip Kumar 2026-12-01 12:07:50 Re: Preserve conflict log table during upgrade
Previous Message Nisha Moond 2026-12-01 11:59:28 Re: Add a hook for handling logical decoding messages on subscribers.