Re: query not using index

From: "Joe Conway" <joseph(dot)conway(at)home(dot)com>
To: "Norbert Zoltan Toth" <Norbert(dot)Zoltan(dot)Toth(at)cern(dot)ch>, <pgsql-general(at)postgresql(dot)org>
Subject: Re: query not using index
Date: 2001-09-03 16:25:37
Message-ID: 012201c13495$10d524a0$0705a8c0@jecw2k1
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: 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

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Nigel Gilbert 2001-09-03 16:54:27 European date format option
Previous Message Giorgio Volpe 2001-09-03 14:25:59 Re: Apache authentication