Re: enums - Mailing list pgsql-hackers

From Andrew Dunstan
Subject Re: enums
Date
Msg-id 43618301.3070405@dunslane.net
Whole thread Raw
In response to Re: enums  ("Cristian Prieto" <cristian@clickdiario.com>)
List pgsql-hackers

Cristian Prieto wrote:

>What about use the declaration order as the enum order?, for example: if I
>declare something like: "CREATE ENUM hola ('item1', 'item3', 'item2');"
>-this is just assuming an hypothetical approach to use enum types in this
>way- and the logical order of the items could be 'item1', 'item3', 'item2'
>just because the user decided to create them in this way.
>
>Well, that's just an idea...
>
>  
>

Using the declaration order is exactly what I have done.

cheers

andrew


pgsql-hackers by date:

Previous
From: Andrew Dunstan
Date:
Subject: Re: enums
Next
From: elein
Date:
Subject: Re: relfilenode