Re: JSON for PG 9.2
Abhijit Menon-Sen <ams@toroid.org>
From: Abhijit Menon-Sen <ams@toroid.org>
To: Robert Haas <robertmhaas@gmail.com>
Cc: Joey Adams <joeyadams3.14159@gmail.com>, Peter Eisentraut <peter_e@gmx.net>, Andrew Dunstan <andrew@dunslane.net>, Jeff Janes <jeff.janes@gmail.com>, Pavel Stehule <pavel.stehule@gmail.com>, "David E. Wheeler" <david@kineticode.com>, Claes Jakobsson <claes@surfar.nu>, Dimitri Fontaine <dimitri@2ndquadrant.fr>, Merlin Moncure <mmoncure@gmail.com>, Magnus Hagander <magnus@hagander.net>, Jan Urbański <wulczer@wulczer.org>, Simon Riggs <simon@2ndquadrant.com>, Bruce Momjian <bruce@momjian.us>, pgsql-hackers@postgresql.org, Jan Wieck <janwieck@yahoo.com>
Date: 2012-02-02T09:54:59Z
Lists: pgsql-hackers
At 2012-02-01 11:28:50 -0500, robertmhaas@gmail.com wrote: > > It's also pretty clear that JSON > string -> PG text data type is going to admit of a number of error > conditions (transcoding errors and perhaps invalid surrogate pairs) so > throwing one more on the pile doesn't cost much. Hi Robert. I'm sorry for being slow, but I don't understand what you're proposing to do here (if anything). Could I ask you to explain, please? Are you talking about allowing the six literal bytes "\u0000" to be present in the JSON? If so, I agree, there seems to be no reason to disallow it. Are you also saying we should allow any "\uNNNN" sequence, without checking for errors (e.g. invalid surrogate pairs or parts thereof)? And what transcoding errors are you referring to? -- ams