Re: planner switch from index scan to seq scan?

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: planner switch from index scan to seq scan?
Дата
Msg-id 10792.964622330@sss.pgh.pa.us
обсуждение исходный текст
Ответ на planner switch from index scan to seq scan?  (Bob Parkinson <rwp@biome.ac.uk>)
Список pgsql-general
Bob Parkinson <rwp@biome.ac.uk> writes:
> Is there are simple rule for when the planner switches over from doing an
> index scan to a seq scan?

Sure: when it thinks the seqscan is cheaper ;-)

The cost models on which this is based are not so simple, but you
can study them if you like, see src/backend/optimizer/path/costsize.c

            regards, tom lane

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

Предыдущее
От: Ron Peterson
Дата:
Сообщение: Re: free auction project with Postgres
Следующее
От: Jules Bean
Дата:
Сообщение: Re: Performance for seq. scans