Re: Indexes on expressions with multiple columns and operators - Mailing list pgsql-performance

From Andrei Lepikhov
Subject Re: Indexes on expressions with multiple columns and operators
Date
Msg-id 9756a3e9-5dea-4506-a077-72a4d9c302df@gmail.com
Whole thread Raw
In response to Re: Indexes on expressions with multiple columns and operators  (Frédéric Yhuel <frederic.yhuel@dalibo.com>)
Responses Re: Indexes on expressions with multiple columns and operators
List pgsql-performance
On 22/9/2025 18:09, Frédéric Yhuel wrote:
> On 9/22/25 15:57, Andrei Lepikhov wrote:
> I wonder if we could devise another kind of extended statistic that 
> would provide these "partitioned statistics" without actually partitioning.I'm not sure I fully understand your case,
butSQL Server demonstrates 
 
an interesting approach: they have a WHERE clause attached to 
statistics. So, having implemented this, you may separate the whole 
range of values inside the table into 'partitions' by such a WHERE 
condition.
It may solve at least one issue with the 'dependencies' statistics: a 
single number describing the dependency between any two values in the 
columns often leads to incorrect estimations, as I see.

-- 
regards, Andrei Lepikhov



pgsql-performance by date:

Previous
From: Frédéric Yhuel
Date:
Subject: Re: Indexes on expressions with multiple columns and operators
Next
From: Frédéric Yhuel
Date:
Subject: Re: Indexes on expressions with multiple columns and operators