Re: VARIANT / ANYTYPE datatype - Mailing list pgsql-hackers

From Darren Duncan
Subject Re: VARIANT / ANYTYPE datatype
Date
Msg-id 4DCAE2AB.6060309@darrenduncan.net
Whole thread Raw
In response to Re: VARIANT / ANYTYPE datatype  (Darren Duncan <darren@darrenduncan.net>)
List pgsql-hackers
To follow-up my earlier comments ...

I suspect for practical purposes we may want to limit the scope of some type 
features.

For example, the greatest benefits for "open union" / "mixin" types is with 
routines/operators, not so much with tables.

So, Pg could choose to support open unions but only for routines, where the 
declared types of table columns must still be other types.  Then you don't have 
to worry about searching your data for where one might be used, but only search 
your system catalog for routines/operators that use it.

But closed unions should be supported in tables too.

-- Darren Duncan



pgsql-hackers by date:

Previous
From: Noah Misch
Date:
Subject: Re: Re: 4.1beta1: ANYARRAY disallowed for DOMAIN types which happen to be arrays
Next
From: Robert Haas
Date:
Subject: Re: Patch to allow domains over composite types