From: | Andrew Dunstan <andrew(at)dunslane(dot)net> |
---|---|
To: | Pavel Stehule <pavel(dot)stehule(at)gmail(dot)com> |
Cc: | Joey Adams <joeyadams3(dot)14159(at)gmail(dot)com>, Robert Haas <robertmhaas(at)gmail(dot)com>, "David E(dot) Wheeler" <david(at)kineticode(dot)com>, Claes Jakobsson <claes(at)surfar(dot)nu>, Dimitri Fontaine <dimitri(at)2ndquadrant(dot)fr>, Merlin Moncure <mmoncure(at)gmail(dot)com>, Magnus Hagander <magnus(at)hagander(dot)net>, Jan Urbański <wulczer(at)wulczer(dot)org>, Simon Riggs <simon(at)2ndquadrant(dot)com>, Bruce Momjian <bruce(at)momjian(dot)us>, PostgreSQL-development Hackers <pgsql-hackers(at)postgresql(dot)org>, Jan Wieck <janwieck(at)yahoo(dot)com> |
Subject: | Re: JSON for PG 9.2 |
Date: | 2012-01-12 15:51:13 |
Message-ID: | 4F0F0171.6070909@dunslane.net |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-hackers |
On 01/12/2012 10:44 AM, Pavel Stehule wrote:
> 2012/1/12 Andrew Dunstan<andrew(at)dunslane(dot)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
>
>
I will be covering composites.
cheers
andrew
From | Date | Subject | |
---|---|---|---|
Next Message | Heikki Linnakangas | 2012-01-12 15:51:56 | Re: pgbench post-connection command |
Previous Message | Alvaro Herrera | 2012-01-12 15:49:16 | Re: pgbench post-connection command |