[COMMITTERS] pgsql: Correctly handle array pseudotypes in to_json and to_jsonb - Mailing list pgsql-committers

From Andrew Dunstan
Subject [COMMITTERS] pgsql: Correctly handle array pseudotypes in to_json and to_jsonb
Date
Msg-id E1cgZYS-0000oR-Af@gemulon.postgresql.org
Whole thread Raw
List pgsql-committers
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(-)


pgsql-committers by date:

Previous
From: Robert Haas
Date:
Subject: [COMMITTERS] pgsql: Pass the source text for a parallel query to the workers.
Next
From: Tom Lane
Date:
Subject: [COMMITTERS] pgsql: Fix contrib/pg_trgm's extraction of trigrams from regularexpres