Re: Bad query plan when you add many OR conditions

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: Bad query plan when you add many OR conditions
Дата
Msg-id 28696.1578669482@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: Bad query plan when you add many OR conditions  (Marco Colli <collimarco91@gmail.com>)
Ответы Re: Bad query plan when you add many OR conditions  (Marco Colli <collimarco91@gmail.com>)
Список pgsql-performance
Marco Colli <collimarco91@gmail.com> writes:
> As you can see it is a *index scan* and not an *index only* scan... I don't
> understand why. The index includes all the fields used by the query... so
> an index only scan should be possible.

Huh?  The query is "select * from ...", so it retrieves *all* columns
of the table.

            regards, tom lane



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

Предыдущее
От: Marco Colli
Дата:
Сообщение: Re: Bad query plan when you add many OR conditions
Следующее
От: Marco Colli
Дата:
Сообщение: Re: Bad query plan when you add many OR conditions