Re: Indexes on expressions with multiple columns and operators

From: Andrei Lepikhov <lepihov(at)gmail(dot)com>
To: Frédéric Yhuel <frederic(dot)yhuel(at)dalibo(dot)com>, Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
Cc: "pgsql-performance(at)lists(dot)postgresql(dot)org" <pgsql-performance(at)lists(dot)postgresql(dot)org>, Jehan-Guillaume de Rorthais <jgdr(at)dalibo(dot)com>, Christophe Courtois <christophe(dot)courtois(at)dalibo(dot)com>, Laurenz Albe <laurenz(dot)albe(at)cybertec(dot)at>
Subject: Re: Indexes on expressions with multiple columns and operators
Date: 2025-09-22 13:57:43
Message-ID: b1c2112a-5f1a-4b73-9b21-69d342fad5b0@gmail.com
Views: Whole Thread | Raw Message | Download mbox | Resend email
Thread:
Lists: pgsql-performance

On 22/9/2025 15:37, Frédéric Yhuel wrote:
> I wonder if this is an argument in favour of decoupling the sample size
> and the precision of the statistics. Here, we basically want the sample
> size to be as big as the table in order to include the few (NULL,
> WARNING) values.
I also have seen how repeating ANALYZE on the same database drastically
changes query plans ;(.
It seems to me that with massive samples, many of the ANALYZE algorithms
should be rewritten. In principle, statistical hooks exist. So, it is
possible to invent an independent table analyser which will scan the
whole table to get precise statistics.

--
regards, Andrei Lepikhov

In response to

Responses

Browse pgsql-performance by date

  From Date Subject
Next Message Frédéric Yhuel 2025-09-22 16:09:05 Re: Indexes on expressions with multiple columns and operators
Previous Message Frédéric Yhuel 2025-09-22 13:37:23 Re: Indexes on expressions with multiple columns and operators