Re: additional json functionality - Mailing list pgsql-hackers

From Andrew Dunstan
Subject Re: additional json functionality
Date
Msg-id 52841D26.5040507@dunslane.net
Whole thread Raw
In response to Re: additional json functionality  ("David E. Wheeler" <david@justatheory.com>)
Responses Re: additional json functionality  ("David E. Wheeler" <david@justatheory.com>)
List pgsql-hackers
On 11/13/2013 07:39 PM, David E. Wheeler wrote:
> On Nov 13, 2013, at 2:41 PM, Gavin Flower <GavinFlower@archidevsys.co.nz> wrote:
>
>> Would be possible to have a boolean, such as 'strict' - so that unique & ordered was only imposed when strict was
TRUE?Alternately, separate functions to allow the same choice?
 
> It should be a pretty-printing function option, perhaps, but not core to the type itself, IMO.


I don't in the least understand how it could be a pretty printing 
option. If we move to a binary rep using the hstore stuff order will be 
destroyed and not stored anywhere, and duplicate keys will be lost. Once 
that's done, how would a pretty print option restore the lost info?

cheers

andrew



pgsql-hackers by date:

Previous
From: Tatsuo Ishii
Date:
Subject: Re: UTF8 national character data type support WIP patch and list of open issues.
Next
From: "David E. Wheeler"
Date:
Subject: Re: additional json functionality