| От | Tom Lane |
|---|---|
| Тема | Re: What's the best type of index for an ENUM column? |
| Дата | |
| Msg-id | 26800.1275967919@sss.pgh.pa.us обсуждение исходный текст |
| Ответ на | What's the best type of index for an ENUM column? (Mike Christensen <mike@kitchenpc.com>) |
| Ответы |
Re: What's the best type of index for an ENUM column?
|
| Список | pgsql-general |
Mike Christensen <mike@kitchenpc.com> writes:
> I have a column in a table that's an ENUM type. What's the best type
> of index for this? It seems if I use a btree index, that's more
> optimized for doing greater than or less than comparisons which don't
> apply to an enum. I will only be doing equals comparisons on these
> columns. Thanks!
You aren't going to find that anything else beats out btree, I expect.
If we had bitmap indexes, those might be superior; but we don't.
regards, tom lane
В списке pgsql-general по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера