Re: nested hstore patch
От
David E. Wheeler
Тема
Re: nested hstore patch
Дата
Msg-id
CF956370-77A8-43DD-B1C1-ADD38DD7F863@justatheory.com
Ответ на
Re: nested hstore patch (Hannu Krosing)
Список
Дерево обсуждения
nested hstore patch Teodor Sigaev <teodor@sigaev.ru>
Re: nested hstore patch Andres Freund <andres@2ndquadrant.com>
Re: nested hstore patch Oleg Bartunov <obartunov@gmail.com>
Re: nested hstore patch (sgml typo) "Erik Rijkers" <er@xs4all.nl>
Re: nested hstore patch Andrew Dunstan <andrew@dunslane.net>
Re: nested hstore patch Andrew Dunstan <andrew@dunslane.net>
Re: nested hstore patch Hannu Krosing <hannu@2ndQuadrant.com>
Re: nested hstore patch Robert Haas <robertmhaas@gmail.com>
Re: nested hstore patch Bruce Momjian <bruce@momjian.us>
Re: nested hstore patch Robert Haas <robertmhaas@gmail.com>
Re: nested hstore patch Andrew Dunstan <andrew@dunslane.net>
Re: nested hstore patch Andrew Dunstan <andrew@dunslane.net>
Re: nested hstore patch "David E. Wheeler" <david@justatheory.com>
Re: nested hstore patch Hannu Krosing <hannu@2ndQuadrant.com>
Re: nested hstore patch Andrew Dunstan <andrew@dunslane.net>
Re: nested hstore patch Hannu Krosing <hannu@2ndQuadrant.com>
Re: nested hstore patch Bruce Momjian <bruce@momjian.us>
Re: nested hstore patch Peter Eisentraut <peter_e@gmx.net>
Re: nested hstore patch Peter Eisentraut <peter_e@gmx.net>
Re: nested hstore patch "David E. Wheeler" <david@justatheory.com>
On Nov 13, 2013, at 3:59 PM, Hannu Krosing wrote:
> I remember strong voices in support of *not* normalising json, so that
> things like
>
> {"a":1,"a":true, "a":"b", "a":none}
>
> would go through the system unaltered, for claimed standard usage of
> json as
> "processing instructions". That is as source code which can possibly
> converted
> to JavaScript Object and not something that would come out of
> serialising of
> any existing JavaScript Object.
My recollection from PGCon was that there was consensus to normalize on the way in -- or at least, if we switched to a binary representation as proposed by Oleg & Teodor, it was not worth the hassle to try to keep it.
> I suggest we add another type, maybe jsobj, which has input and output
> as standard
> "JSON" but which is defined from the start to be equivalent of existing
> object
> and not "preservable source code" to such object.
-1 Let's try to keep this simple. See also VARCHAR and VARCHAR2 on Oracle.
Best,
David
В списке pgsql-hackers по дате отправления