enum for performance?

Поиск
Список
Период
Сортировка
От Whit Armstrong
Тема enum for performance?
Дата
Msg-id 8ec76080906171506ia7ba3ceo1320d4c6430cac67@mail.gmail.com
обсуждение исходный текст
Ответы Re: enum for performance?
Re: enum for performance?
Список pgsql-performance
I have a column which only has six states or values.

Is there a size advantage to using an enum for this data type?
Currently I have it defined as a character(1).

This table has about 600 million rows, so it could wind up making a
difference in total size.

Thanks,
Whit

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

Предыдущее
От: Bryce Ewing
Дата:
Сообщение: Re: Index Scan taking long time
Следующее
От: Tom Lane
Дата:
Сообщение: Re: enum for performance?