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 22c38fe8-e673-46ec-b025-6ea964b3502f@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 25/9/2025 12:41, Frédéric Yhuel wrote:
> So, on SQL Server, you can do this:
> CREATE STATISTICS FooStats ON foo (ackid, crit) WHERE crit = 'WARNING';
> 
> It would be great to have a similar feature in PostgreSQL.Nice! Thanks for the report. I think the only reason why
Postgres
 
doesn't have it yet is the computational cost. SQL Server utilises a 
separate background worker to manage this vast amount of statistical 
data. Not sure that Postgres core wants it. Maybe one more contrib 
extension can be a solution?

-- 
regards, Andrei Lepikhov,
pgEdge



pgsql-performance by date:

Previous
From: Andrei Lepikhov
Date:
Subject: Re: Indexes on expressions with multiple columns and operators
Next
From: Tom Lane
Date:
Subject: Re: Indexes on expressions with multiple columns and operators