Re: new json funcs

Поиск
Список
Период
Сортировка
От Josh Berkus
Тема Re: new json funcs
Дата
Msg-id 52E7F2DB.1060809@agliodbs.com
обсуждение исходный текст
Ответ на Re: new json funcs  (Andrew Dunstan <andrew@dunslane.net>)
Ответы Re: new json funcs  (Alvaro Herrera <alvherre@2ndquadrant.com>)
Список pgsql-hackers
On 01/27/2014 01:06 PM, Alvaro Herrera wrote:
> Andrew Dunstan escribió:
>
>> I'm not sure I understand the need. This is the difference between
>> the _text variants and their parents. Why would you call
>> json_object_field when you want the dequoted text?
>
> Because I first need to know its type.  Sometimes it's an array, or an
> object, or a boolean, and for those I won't call the _text version
> afterwards but just use the original.

It would make more sense to extract them as JSON, check the type, and
convert.

--
Josh Berkus
PostgreSQL Experts Inc.
http://pgexperts.com



В списке pgsql-hackers по дате отправления:

Предыдущее
От: Josh Berkus
Дата:
Сообщение: Re: jsonb and nested hstore
Следующее
От: Jeff Janes
Дата:
Сообщение: Weird error messages from Windows upon client death