-- Sent via pgsql-hackers mailing list (pgsql-hackers@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-hackers
To follow-up, an additional feature that would be useful and resembles union
types is the variant where you could declare a union type first and then
separately other types could declare they are a member of the union. I'm
talking about loosely what mixins or type-roles or interfaces etc are in other
languages. The most trivial example would be declaring an ENUM-alike first and
then separately declaring the component values where the latter declare they are
part of the ENUM, and this could make it easier to add or change ENUM values.
But keep in mind that this is a distinct concept from what we're otherwise
talking about as being union types. -- Darren Duncan
- Re: [HACKERS] VARIANT / ANYTYPE datatype Alvaro Herrera
- Re: [HACKERS] VARIANT / ANYTYPE datatype Tom Lane
- Re: [HACKERS] VARIANT / ANYTYPE dat... Merlin Moncure
- Re: [HACKERS] VARIANT / ANYTYPE datatype David E. Wheeler
- Re: [HACKERS] VARIANT / ANYTYPE datatype Darren Duncan
- Re: [HACKERS] VARIANT / ANYTYPE datatype Alvaro Herrera
- Re: [HACKERS] VARIANT / ANYTYPE datatype Andrew Dunstan
- Re: [HACKERS] VARIANT / ANYTYPE datatype Merlin Moncure
- Re: [HACKERS] VARIANT / ANYTYPE datatype Darren Duncan
- Re: [HACKERS] VARIANT / ANYTYPE dat... Darren Duncan
- Re: [HACKERS] VARIANT / ANYTYPE... Bruce Momjian
- Re: [HACKERS] VARIANT / ANYTYPE... Alvaro Herrera
- Re: [HACKERS] VARIANT / ANYTYPE... Darren Duncan
- Re: [HACKERS] VARIANT / ANYTYPE datatype Tom Lane
- Re: [HACKERS] VARIANT / ANYTYPE datatype Simon Riggs
- Re: [HACKERS] VARIANT / ANYTYPE datatype Eric McKeeth
- Re: [HACKERS] VARIANT / ANYTYPE datatype Alvaro Herrera
- Re: [HACKERS] VARIANT / ANYTYPE datatype Joseph Adams
- Re: [HACKERS] VARIANT / ANYTYPE datatype Joseph Adams
- Re: [HACKERS] VARIANT / ANYTYPE datatype Pavel Stehule