index not used for boolean

Поиск
Список
Период
Сортировка
От Gaetano Mendola
Тема index not used for boolean
Дата
Msg-id c77fad$qru$1@floppy.pyrenet.fr
обсуждение исходный текст
Ответы Re: index not used for boolean  (Greg Johnson <gregj@interprose.com>)
Список pgsql-admin
Hi all,
is it normal that in a select like:

select * from foo where expired;

the index on expired is not used?

If I rewrite that query:

select * from foo where expired = true;

then the index is used!

I'm using postrgres 7.4.2


Regards
Gaetano Mendola

В списке pgsql-admin по дате отправления:

Предыдущее
От: douglas morrison
Дата:
Сообщение: Re: Bad character data
Следующее
От: "Noah Davis"
Дата:
Сообщение: Re: Bad character data