Re: A space-efficient, user-friendly way to store categorical data

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: A space-efficient, user-friendly way to store categorical data
Дата
Msg-id 18097.1518388847@sss.pgh.pa.us
обсуждение исходный текст
Ответ на A space-efficient, user-friendly way to store categorical data  (Andrew Kane <andrew@chartkick.com>)
Ответы Re: A space-efficient, user-friendly way to store categorical data
Список pgsql-hackers
Andrew Kane <andrew@chartkick.com> writes:
> A better option could be a new "dynamic enum" type, which would have
> similar storage requirements as an enum, but instead of labels being
> declared ahead of time, they would be added as data is inserted.

You realize, of course, that it's possible to add labels to an enum type
today.  (Removing them is another story.)

You haven't explained exactly what you have in mind that is going to be
able to duplicate the advantages of the current enum implementation
without its disadvantages, so it's hard to evaluate this proposal.

            regards, tom lane


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

Предыдущее
От: Andrew Dunstan
Дата:
Сообщение: Re: ALTER TABLE ADD COLUMN fast default
Следующее
От: Andrew Dunstan
Дата:
Сообщение: Re: A space-efficient, user-friendly way to store categorical data