Re: A space-efficient, user-friendly way to store categorical data
В списке pgsql-hackers по дате отправления:
| От | 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 по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера