aboutsummaryrefslogtreecommitdiff
path: root/src/backend/utils/adt/jsonb_util.c
diff options
context:
space:
mode:
authorAndrew Dunstan <andrew@dunslane.net>2014-12-12 15:31:14 -0500
committerAndrew Dunstan <andrew@dunslane.net>2014-12-12 15:31:14 -0500
commit7e354ab9fe9e7c3b0a7a40f226c76bd5cf6438d0 (patch)
treed306f564a7ec8a3fc0a657c93671f36a63b0dce2 /src/backend/utils/adt/jsonb_util.c
parent8ec8760fc87ecde0516e511f1c55aec627b01ea7 (diff)
downloadpostgresql-7e354ab9fe9e7c3b0a7a40f226c76bd5cf6438d0.tar.gz
postgresql-7e354ab9fe9e7c3b0a7a40f226c76bd5cf6438d0.zip
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.
Diffstat (limited to 'src/backend/utils/adt/jsonb_util.c')
-rw-r--r--src/backend/utils/adt/jsonb_util.c2
1 files changed, 1 insertions, 1 deletions
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