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

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: Trying to understand why a query is filtering when there is a composite index
Дата
Msg-id 1434438.1724111726@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: 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
"Stephen Samuel (Sam)" <sam@sksamuel.com> writes:
> This index covers both columns needed in the predicate/projection, and the
> visibility bit is almost always set, why does it need to go to the heap at
> all and doesn't just get what it needs from the index?

Peter's theory was that the particular tuples you were fetching were
in not-all-visible pages.  That seems plausible to me.

            regards, tom lane



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