Sequential Scan Index Bug - Mailing list pgsql-bugs

From Gabriel Weinberg
Subject Sequential Scan Index Bug
Date
Msg-id 000001c419ac$bf20be80$0900a8c0@yegg
Whole thread Raw
Responses Re: Sequential Scan Index Bug  (Bruno Wolff III <bruno@wolff.to>)
List pgsql-bugs
I have a table with an integer column with about 10M rows in it.

This column has an index (btree).

When I try to select a row using this column with an integer, e.g. select *
from table where id=4, it always uses the index.  However, if I select try
to select a row using this column with a decimal, e.g. select * from table
where id=4.343, it skips the index entirely and does a sequential scan of
the table.

I am using v7.4.2 on Freebsd 4.9.

Gabriel

_________________
Gabriel Weinberg
yegg@alum.mit.edu

pgsql-bugs by date:

Previous
From: rahul
Date:
Subject: Problem starting postgresql !!
Next
From: Victor Sudakov
Date:
Subject: Renaming a table leaves orphaned implicit sequences which breaks pg_restore.