Re: Putting an INDEX on a boolean field?

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: Putting an INDEX on a boolean field?
Дата
Msg-id 15887.1118983309@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Putting an INDEX on a boolean field?  ("Marc G. Fournier" <scrappy@postgresql.org>)
Ответы Re: Putting an INDEX on a boolean field?
Список pgsql-sql
"Marc G. Fournier" <scrappy@postgresql.org> writes:
> Does that make sense?  Would it ever get used?

It could get used if one of the two values is far less frequent than the
other.  Personally I'd think about a partial index instead ...
        regards, tom lane


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

Предыдущее
От: David Dick
Дата:
Сообщение: Re: Putting an INDEX on a boolean field?
Следующее
От: "Marc G. Fournier"
Дата:
Сообщение: Re: Putting an INDEX on a boolean field?