Re: timestamp query doesn't use an index ...

Поиск
Список
Период
Сортировка
От Michael Glaesemann
Тема Re: timestamp query doesn't use an index ...
Дата
Msg-id CDFEA380-8C33-4B73-8FFA-FBE4A659ADBF@seespotcode.net
обсуждение исходный текст
Ответ на timestamp query doesn't use an index ...  ("Marc G. Fournier" <scrappy@postgresql.org>)
Ответы Re: timestamp query doesn't use an index ...  ("Marc G. Fournier" <scrappy@postgresql.org>)
Список pgsql-sql
On May 21, 2006, at 10:42 , Marc G. Fournier wrote:

>    ->  Seq Scan on page_schedule ps2  (cost=0.00..2364.95  
> rows=33110 width=16) (actual time=0.021..623.363 rows=94798 loops=1)

I don't know about rewriting the query, but it appears your  
statistics are a little out of date (e.g., rows expected/actual  
33110/94798). Does running ANALYZE help?


Michael Glaesemann
grzm seespotcode net





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

Предыдущее
От: "Marc G. Fournier"
Дата:
Сообщение: timestamp query doesn't use an index ...
Следующее
От: "Marc G. Fournier"
Дата:
Сообщение: Re: timestamp query doesn't use an index ...