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 27110.1275969249@sss.pgh.pa.us
обсуждение исходный текст
Ответ на 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:
> Just to double check, an enum type is gonna be stored on the disk as
> an integer, correct?  And all indexes will be based on the integer
> value of the enum?

Well, strictly speaking it's an OID, but yeah.  The label is only
of interest for I/O.

            regards, tom lane

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

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