On 2013-11-15 12:54:53 -0800, Josh Berkus wrote:
> On 11/15/2013 12:25 PM, Merlin Moncure wrote:
> > Kinda yes, kinda no.  Here's a rough sketch of what I'm thinking:
> > 
> > *) 'json' type internally has a binary as well a text representation.
> > The text representation is basically the current type behavior
> <snip long detailed explanation of behavior-dependant type>
> That's not at all workable.  Users would be completely unable to predict
> or understand the JSON type and how it acts.  That's not just violating
> POLS; that's bashing POLS' head in with a shovel.

It's also not currently possible to implement such a behaviour inside a
type's functions. You'd need core code cooperation.


Andres Freund

 Andres Freund                     http://www.2ndQuadrant.com/
 PostgreSQL Development, 24x7 Support, Training & Services

Sent via pgsql-hackers mailing list (pgsql-hackers@postgresql.org)
To make changes to your subscription:

Reply via email to