Re: JSON in 9.2: limitations

Поиск
Список
Период
Сортировка
От Craig Ringer
Тема Re: JSON in 9.2: limitations
Дата
Msg-id 5021B222.7060106@ringerc.id.au
обсуждение исходный текст
Ответ на Re: JSON in 9.2: limitations  (Merlin Moncure <mmoncure@gmail.com>)
Ответы Re: JSON in 9.2: limitations  (Merlin Moncure <mmoncure@gmail.com>)
Список 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 по дате отправления:

Предыдущее
От: Sergey Konoplev
Дата:
Сообщение: Re: Problem running "ALTER TABLE...", ALTER TABLE waiting
Следующее
От: Craig Ringer
Дата:
Сообщение: Re: PostgreSQL 9.1 product code