pgsql: Add array_to_json and row_to_json functions.

From: Andrew Dunstan <andrew(at)dunslane(dot)net>
To: pgsql-committers(at)postgresql(dot)org
Subject: pgsql: Add array_to_json and row_to_json functions.
Date: 2012-02-03 17:37:05
Message-ID: E1RtN4L-0007a7-GG@gemulon.postgresql.org
Views: Whole Thread | Raw Message | Download mbox | Resend email
Thread:
Lists: pgsql-committers

Add array_to_json and row_to_json functions.

Also move the escape_json function from explain.c to json.c where it
seems to belong.

Andrew Dunstan, Reviewd by Abhijit Menon-Sen.

Branch
------
master

Details
-------
http://git.postgresql.org/pg/commitdiff/39909d1d39ae57c3a655fc7010e394e26b90fec9

Modified Files
--------------
doc/src/sgml/func.sgml | 59 ++++++
src/backend/commands/explain.c | 47 +-----
src/backend/utils/adt/json.c | 354 +++++++++++++++++++++++++++++++++++-
src/include/catalog/pg_proc.h | 8 +
src/include/utils/json.h | 5 +
src/test/regress/expected/json.out | 111 +++++++++++
src/test/regress/sql/json.sql | 43 +++++
7 files changed, 579 insertions(+), 48 deletions(-)

Browse pgsql-committers by date

  From Date Subject
Next Message Michael Meskes 2012-02-04 00:18:41 pgsql: Applied Peter's patch to PQconnectdbParams in ecpglib instead of
Previous Message Peter Eisentraut 2012-02-02 18:33:46 pgsql: ecpg: Improve test building