INDEX BUG??? - Mailing list pgsql-hackers

From gabriel
Subject INDEX BUG???
Date
Msg-id 20010903130840.21272.qmail@hm36.locaweb.com.br
Whole thread Raw
Responses Re: INDEX BUG???  (Peter Eisentraut <peter_e@gmx.net>)
Re: INDEX BUG???  (Stephan Szabo <sszabo@megazone23.bigpanda.com>)
List pgsql-hackers
hello All

I tried the following commands:
ponto=# explain select * from horarios where funcionario>10000;
NOTICE:  QUERY PLAN:

Seq Scan on horarios  (cost=0.00..176.21 rows=2432 width=132)

EXPLAIN
ponto=# explain select * from horarios where funcionario=10000;
NOTICE:  QUERY PLAN:

Index Scan using horarios_func_data on horarios  (cost=0.00..55.37 rows=73 
width=132)

EXPLAIN

So my question is why in the first case the postgre did'nt use the index 
and made a seq scan ??

thanks and sorry about my english...


pgsql-hackers by date:

Previous
From: Hannu Krosing
Date:
Subject: Re: Porting to Native WindowsNT/2000
Next
From: "Steve Howe"
Date:
Subject: Determining users from group