Add several generator functions for jsonb that exist for json.

Andrew Dunstan <andrew@dunslane.net>

Commit: 7e354ab9fe9e7c3b0a7a40f226c76bd5cf6438d0
Author: Andrew Dunstan <andrew@dunslane.net>
Date: 2014-12-12T20:31:14Z
Releases: 9.5.0
Add several generator functions for jsonb that exist for json.

The functions are:
    to_jsonb()
    jsonb_object()
    jsonb_build_object()
    jsonb_build_array()
    jsonb_agg()
    jsonb_object_agg()

Also along the way some better logic is implemented in
json_categorize_type() to match that in the newly implemented
jsonb_categorize_type().

Andrew Dunstan, reviewed by Pavel Stehule and Alvaro Herrera.

Files