Re: Why is it not using an index?

Поиск
Список
Период
Сортировка
От Sergio Freue
Тема Re: Why is it not using an index?
Дата
Msg-id 3C928BC9.90305@yahoo.com
обсуждение исходный текст
Ответ на Why is it not using an index?  (Dmitry Tkach <dmitry@openratings.com>)
Список 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 по дате отправления:

Предыдущее
От: "Greg Sabino Mullane"
Дата:
Сообщение: Re: Random Numbers/Letters
Следующее
От:
Дата:
Сообщение: Re: Btree index extension question