| От | Tom Lane |
|---|---|
| Тема | Re: Hash and bools |
| Дата | |
| Msg-id | 4754.1024782309@sss.pgh.pa.us обсуждение |
| Ответ на | Hash and bools (Scott Marlowe <scott.marlowe@ihs.com>) |
| Список | pgsql-hackers |
Scott Marlowe <scott.marlowe@ihs.com> writes:
> During the discussion of bools and hash index and partial indexes and
> index growth and everything else, I tried to make a partial index on a
> bool field and got the error that "data type bool has no default operator
> for class hash..."
Well, no. I can't see much point in hashing for a datatype with only
two values. (Of course, btree probably sucks too in this case.)
You could probably gin one up pretty quickly using the support routines
for char_ops, if you want one for testing.
regards, tom lane
В списке pgsql-hackers по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера