Re: index usage

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: index usage
Дата
Msg-id 18165.1066850692@sss.pgh.pa.us
обсуждение исходный текст
Ответ на index usage  (Andrei Ivanov <andrei.ivanov@ines.ro>)
Список pgsql-novice
Andrei Ivanov <andrei.ivanov@ines.ro> writes:
> The table contains ~140 rows and I've ran vacuum full analyze.

On a table that small, a seqscan is usually preferable because it takes
less I/O.  In your test case the index pages were evidently already in
RAM, so that no additional I/O was actually needed to consult the index
--- but in a production situation you'd not be able to count on that.

            regards, tom lane

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

Предыдущее
От: Josh Berkus
Дата:
Сообщение: Re: Functional index problems. (Was: Many joins: monthly summaries S-L--O--W)
Следующее
От: Andrei Ivanov
Дата:
Сообщение: advice