Re: Seq. scan when using comparison operators, why? [netaktiv.com #150]

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: Seq. scan when using comparison operators, why? [netaktiv.com #150]
Дата
Msg-id 20548.1018275990@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: Seq. scan when using comparison operators, why? [netaktiv.com #150]  (Stephane Bortzmeyer <bortzmeyer@netaktiv.com>)
Список pgsql-general
Stephane Bortzmeyer <bortzmeyer@netaktiv.com> writes:
> You're right, after the VACUUM ANALYZE, both queries use sequential
> scan :-)

Try it with a bigger table ;-).  On a toy-size table the planner doesn't
see any reason to bother with an index at all; the index cannot save any
disk fetches when there's only one or two disk pages in the table anyway
...

            regards, tom lane

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

Предыдущее
От: Stephane Bortzmeyer
Дата:
Сообщение: Re: Seq. scan when using comparison operators, why? [netaktiv.com #150]
Следующее
От: John Gibson
Дата:
Сообщение: Help with pg_hba.conf file