Re: What's the best type of index for an ENUM column?

Поиск
Список
Период
Сортировка
От 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?  (Mike Christensen <mike@kitchenpc.com>)
Список 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 по дате отправления:

Предыдущее
От: Mike Christensen
Дата:
Сообщение: What's the best type of index for an ENUM column?
Следующее
От: Mike Christensen
Дата:
Сообщение: Re: What's the best type of index for an ENUM column?