Re: Why is it not using an index? - Mailing list pgsql-general

From Sergio Freue
Subject Re: Why is it not using an index?
Date
Msg-id 3C928BC9.90305@yahoo.com
Whole thread Raw
In response to Why is it not using an index?  (Dmitry Tkach <dmitry@openratings.com>)
List pgsql-general
I had the same problem and the question was answered here yesterday:

>
> explain select * from a where x=3;
>

Try


explain select * from a where x=3::smallint;



That should do it. I opted for changing all indexed SMALLINT fields to
INTEGER.


pgsql-general by date:

Previous
From: "Greg Sabino Mullane"
Date:
Subject: Re: Random Numbers/Letters
Next
From:
Date:
Subject: Re: Btree index extension question