Re: JSON in 9.2: limitations - Mailing list pgsql-general

From Craig Ringer
Subject Re: JSON in 9.2: limitations
Date
Msg-id 5021B222.7060106@ringerc.id.au
Whole thread Raw
In response to Re: JSON in 9.2: limitations  (Merlin Moncure <mmoncure@gmail.com>)
Responses Re: JSON in 9.2: limitations
List pgsql-general
On 08/08/2012 03:45 AM, Merlin Moncure wrote:

> Given that you can do that, if you had the ability to emit json from
> an hstore the OP's problem would be trivially handled.

That's where my thinking went at first too, but there's a wrinkle with
that: json represents the number 1 and the string "1" differently.
hstore doesn't. The input data would need to be JSON-escaped before
being added to hstore to preserve that difference - so at minimum some
kind of scalar json_escape(...) function is still needed.

I was also trying to avoid the need to use *two* extensions for the job.

--
Craig Ringer

pgsql-general by date:

Previous
From: Sergey Konoplev
Date:
Subject: Re: Problem running "ALTER TABLE...", ALTER TABLE waiting
Next
From: Craig Ringer
Date:
Subject: Re: PostgreSQL 9.1 product code