json generation enhancements

From: Andrew Dunstan <andrew(at)dunslane(dot)net>
To: PostgreSQL-development <pgsql-hackers(at)postgresql(dot)org>
Subject: json generation enhancements
Date: 2013-01-11 16:00:20
Message-ID: 50F03714.9050601@dunslane.net
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers


I have not had anyone follow up on this, so I have added docs and will
add this to the commitfest.

Recap:

This adds the following:

json_agg(anyrecord) -> json
to_json(any) -> json
hstore_to_json(hstore) -> json (also used as a cast)
hstore_to_json_loose(hstore) -> json

Also, in json generation, if any non-builtin type has a cast to json,
that function is used instead of the type's output function.

cheers

andrew

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Andrew Dunstan 2013-01-11 16:03:56 Re: json generation enhancements
Previous Message Simon Riggs 2013-01-11 15:57:53 Re: Performance Improvement by reducing WAL for Update Operation