Correctly handle array pseudotypes in to_json and to_jsonb

Andrew Dunstan <andrew@dunslane.net>

Commit: 502a3832cc54c7115dacb8a2dae06f0620995ac6
Author: Andrew Dunstan <andrew@dunslane.net>
Date: 2017-02-22T16:10:49Z
Releases: 10.0
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.

Files