Re: JSON for PG 9.2

Поиск
Список
Период
Сортировка
От Pavel Stehule
Тема Re: JSON for PG 9.2
Дата
Msg-id CAFj8pRCtqO6e5cUqK2e249GO=pBp8WcdX9x6rvohBM7Bd0E9yA@mail.gmail.com
обсуждение исходный текст
Ответ на Re: JSON for PG 9.2  (Andrew Dunstan <andrew@dunslane.net>)
Ответы Re: JSON for PG 9.2  (Andrew Dunstan <andrew@dunslane.net>)
Список pgsql-hackers
2012/1/12 Andrew Dunstan <andrew@dunslane.net>:
>
>
> On 01/12/2012 09:00 AM, Joey Adams wrote:
>>
>> I wrote an array_to_json function during GSoC 2010:
>>
>>
>> http://git.postgresql.org/gitweb/?p=json-datatype.git;a=blob;f=json_io.c#l289
>>
>> It's not exposed as a procedure called array_to_json: it's part of the
>> to_json function, which decides what to do based on the argument type.
>>
>
>
> Excellent, this is just the point at which I stopped work last night, so
> with your permission I'll steal this and it will save me a good chunk of
> time.
>

this should be little bit more enhanced to support a row arrays - it
can be merged with some routines from pst tool
http://okbob.blogspot.com/2010/11/new-version-of-pst-collection-is.html

Regards

Pavel

> cheers
>
> andrew
>


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

Предыдущее
От: "Kevin Grittner"
Дата:
Сообщение: Re: Remembering bug #6123
Следующее
От: Florian Pflug
Дата:
Сообщение: Re: Remembering bug #6123