Re: Indexes on expressions with multiple columns and operators
| От | Andrei Lepikhov |
|---|---|
| Тема | Re: Indexes on expressions with multiple columns and operators |
| Дата | |
| Msg-id | 9756a3e9-5dea-4506-a077-72a4d9c302df@gmail.com обсуждение |
| Ответ на | Re: Indexes on expressions with multiple columns and operators (Frédéric Yhuel <frederic.yhuel@dalibo.com>) |
| Ответы |
Re: Indexes on expressions with multiple columns and operators
|
| Список | 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 по дате отправления: