Re: BUG #1122: limit 1 doing a sequential scan

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: BUG #1122: limit 1 doing a sequential scan
Дата
Msg-id 4573.1080938196@sss.pgh.pa.us
обсуждение исходный текст
Ответ на BUG #1122: limit 1 doing a sequential scan  ("PostgreSQL Bugs List" <pgsql-bugs@postgresql.org>)
Список pgsql-bugs
"PostgreSQL Bugs List" <pgsql-bugs@postgresql.org> writes:
> When I do a select * from table limit 1
> Postgresql does a sequential scan on the whole table.

AFAICS you simply are misreading the EXPLAIN output.

(It also sounds like you haven't vacuumed or analyzed that table in a
mighty long time... if you're having performance problems that is
probably the reason...)

            regards, tom lane

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

Предыдущее
От: "PostgreSQL Bugs List"
Дата:
Сообщение: BUG #1122: limit 1 doing a sequential scan
Следующее
От: "PostgreSQL Bugs List"
Дата:
Сообщение: BUG #1123: breef description of postgre