Re: query not using index

Поиск
Список
Период
Сортировка
От Joe Conway
Тема Re: query not using index
Дата
Msg-id 012201c13495$10d524a0$0705a8c0@jecw2k1
обсуждение исходный текст
Ответ на query not using index  ("Norbert Zoltan Toth" <Norbert.Zoltan.Toth@cern.ch>)
Список pgsql-general
>     explain select event_id from history where event_type = 120;
>     NOTICE:  QUERY PLAN:
>
>     Seq Scan on history  (cost=0.00..446079.00 rows=200000 width=8)
>
> even if I do a drop index history_idx, explains sais the same.
>

Try
    explain select event_id from history where event_type = 120::int8;

See
    http://fts.postgresql.org/db/mw/msg.html?mid=1031765
for some further explanation/history.

HTH,
-- Joe



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

Предыдущее
От: "Andrew Snow"
Дата:
Сообщение: Re: Perl won't eval PgSQL boolean value
Следующее
От: Stephan Szabo
Дата:
Сообщение: Re: Referential Integrity --> SystemTables