| От | Tom Lane |
|---|---|
| Тема | Re: [HACKERS] minor bug... |
| Дата | |
| Msg-id | 5771.950112326@sss.pgh.pa.us обсуждение исходный текст |
| Ответ на | minor bug... (Don Baccus <dhogaza@pacifier.com>) |
| Список | pgsql-hackers |
Don Baccus <dhogaza@pacifier.com> writes:
> ... there's no real reason not to support indexes on booleans, is
> there?
Not that I can see. Care to whip up the index support? I think the
only actual new code needed is a three-way-compare function (return -1,
0, or +1 according as a < b, a = b, a > b). Then you need to make up
the appropriate rows in pg_amop and related tables. See the "xindex"
chapter of the documentation.
(It occurs to me that performance would probably suck, however, because
btree doesn't handle lots of equal keys very efficiently. Fixing that
is on the TODO list...)
regards, tom lane
В списке pgsql-hackers по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера