Thread: [COMMITTERS] pgsql: Correctly handle array pseudotypes in to_json and to_jsonb

[COMMITTERS] pgsql: Correctly handle array pseudotypes in to_json and to_jsonb

From
Andrew Dunstan
Date:
Correctly handle array pseudotypes in to_json and to_jsonb

Columns with array pseudotypes have not been identified as arrays, so
they have been rendered as strings in the json and jsonb conversion
routines. This change allows them to be rendered as json arrays, making
it possible to deal correctly with the anyarray columns in pg_stats.

Branch
------
master

Details
-------
http://git.postgresql.org/pg/commitdiff/502a3832cc54c7115dacb8a2dae06f0620995ac6

Modified Files
--------------
src/backend/utils/adt/json.c        | 5 +++--
src/backend/utils/adt/jsonb.c       | 5 +++--
src/test/regress/expected/json.out  | 9 +++++++++
src/test/regress/expected/jsonb.out | 9 +++++++++
src/test/regress/sql/json.sql       | 6 ++++++
src/test/regress/sql/jsonb.sql      | 6 ++++++
6 files changed, 36 insertions(+), 4 deletions(-)