Re: additional json functionality - Mailing list pgsql-hackers

From Andres Freund
Subject Re: additional json functionality
Date
Msg-id 20131115205714.GK5489@awork2.anarazel.de
Whole thread Raw
In response to Re: additional json functionality  (Josh Berkus <josh@agliodbs.com>)
List pgsql-hackers
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.

Greetings,

Andres Freund

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



pgsql-hackers by date:

Previous
From: Merlin Moncure
Date:
Subject: Re: additional json functionality
Next
From: J Smith
Date:
Subject: Re: Errors on missing pg_subtrans/ files with 9.3