Re: enum bug

Поиск
Список
Период
Сортировка
От Joshua D. Drake
Тема Re: enum bug
Дата
Msg-id 56E6E1D4.4090700@commandprompt.com
обсуждение исходный текст
Ответ на Re: enum bug  ("David G. Johnston" <david.g.johnston@gmail.com>)
Ответы Re: enum bug  (Melvin Davidson <melvin6925@gmail.com>)
Список pgsql-general
On 03/14/2016 09:02 AM, David G. Johnston wrote:

> ​The one nice thing about enums is that you get two concepts in one
> column - a human readable label and a system used ordering.
>
> i.e., "SELECT enum_value FROM tbl ORDER BY enum_value" actually
> ​
> ​gives you a meaningful order without having to carry around, or relink
> to, a lookup table to get an ordering column.
>
> ​Now, this is a bit overrated since you immediately lose that ability if
> you export to a Spreadsheet program, or otherwise lose the ordering
> nature during a convert-to-text operation.
>

I do not suggest that ENUMS are useless just that there are more
flexible and reasonable ways (as a whole) to do what ENUMS provide.

Sincerely,

JD

--
Command Prompt, Inc.                  http://the.postgres.company/
                         +1-503-667-4564
PostgreSQL Centered full stack support, consulting and development.
Everyone appreciates your honesty, until you are honest with them.


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

Предыдущее
От: "David G. Johnston"
Дата:
Сообщение: Re: enum bug
Следующее
От: Melvin Davidson
Дата:
Сообщение: Re: enum bug