Re: Trying to understand why a query is filtering when there is a composite index

Поиск
Список
Период
Сортировка
От Peter Geoghegan
Тема Re: Trying to understand why a query is filtering when there is a composite index
Дата
Msg-id CAH2-WznVMvKQaT92HgxQ4T_SUOmGezSiFFCdwM3PL90g+5xCbA@mail.gmail.com
обсуждение исходный текст
Ответ на Trying to understand why a query is filtering when there is a composite index  ("Stephen Samuel (Sam)" <sam@sksamuel.com>)
Ответы Re: Trying to understand why a query is filtering when there is a composite index
Список pgsql-performance
On Sun, Aug 18, 2024 at 9:56 PM Stephen Samuel (Sam) <sam@sksamuel.com> wrote:
> My question is, why isn't it using the index for column b? Is this expected? And why is it doing heap lookups for
everyrow,. 

This has been fixed for Postgres 17:

https://pganalyze.com/blog/5mins-postgres-17-faster-btree-index-scans

--
Peter Geoghegan



В списке pgsql-performance по дате отправления: