From 7e354ab9fe9e7c3b0a7a40f226c76bd5cf6438d0 Mon Sep 17 00:00:00 2001 From: Andrew Dunstan Date: Fri, 12 Dec 2014 15:31:14 -0500 Subject: 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. --- src/backend/utils/adt/jsonb_util.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/backend/utils/adt/jsonb_util.c') diff --git a/src/backend/utils/adt/jsonb_util.c b/src/backend/utils/adt/jsonb_util.c index c62941baa7b..b51990f6fdc 100644 --- a/src/backend/utils/adt/jsonb_util.c +++ b/src/backend/utils/adt/jsonb_util.c @@ -1427,7 +1427,7 @@ convertJsonbValue(StringInfo buffer, JEntry *header, JsonbValue *val, int level) else if (val->type == jbvObject) convertJsonbObject(buffer, header, val, level); else - elog(ERROR, "unknown type of jsonb container"); + elog(ERROR, "unknown type of jsonb container to convert"); } static void -- cgit v1.2.3