Re: enum bug - Mailing list pgsql-general

From Joshua D. Drake
Subject Re: enum bug
Date
Msg-id 56E6E1D4.4090700@commandprompt.com
Whole thread Raw
In response to Re: enum bug  ("David G. Johnston" <david.g.johnston@gmail.com>)
Responses Re: enum bug
List 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 by date:

Previous
From: "David G. Johnston"
Date:
Subject: Re: enum bug
Next
From: Melvin Davidson
Date:
Subject: Re: enum bug