Re: WIP: transformation hook modules and JSON support - Mailing list pgsql-hackers

From Alvaro Herrera
Subject Re: WIP: transformation hook modules and JSON support
Date
Msg-id 20090401023815.GB3377@alvh.no-ip.org
Whole thread Raw
In response to WIP: transformation hook modules and JSON support  (Pavel Stehule <pavel.stehule@gmail.com>)
Responses Re: WIP: transformation hook modules and JSON support
List pgsql-hackers
Pavel Stehule escribió:
> Hello
> 
> I am sending samples of transformation hook modules. One module is
> JSON support:.
> 
> From these modules only JSON support has general usage - so only JSON
> should be integrated to core.

I'm only seeing trivial examples below, where you form the JSON objects
by plastering literals together.  Does this work on a scenario where the
values come from a table?

The question is not at all theoretical -- right now our
archives.postgresql.org site uses a JSON file that's just a dump of a
table in a database.  This file contains a list of lists, and a number
of properties for each (name, group it belongs to, description).
Obviously each one needs its label too.

Right now we generate this with a JSON Perl module.

-- 
Alvaro Herrera                                http://www.CommandPrompt.com/
The PostgreSQL Company - Command Prompt, Inc.


pgsql-hackers by date:

Previous
From: Heikki Linnakangas
Date:
Subject: Re: More message encoding woes
Next
From: Alvaro Herrera
Date:
Subject: Re: More message encoding woes