Built-in JSON data type.
Like the XML data type, we simply store JSON data as text, after checking that it is valid. More complex operations such as canonicalization and comparison may come later, but this is enough for not. There are a few open issues here, such as whether we should attempt to detect UTF-8 surrogate pairs represented as \uXXXX\uYYYY, but this gets the basic framework in place. Author: Álvaro Hernández Tortosa <aht@8kdata.com> Date: Mon Mar 14 17:35:20 UTC 2016 doc/src/sgml/datatype.sgml: changed ignored src/backend/utils/adt/json.c: FIXME: s/errdetail_internal/errdetail/ as errdetail_internal is not supported (yet?) in GPDP. src/backend/commands/explain.c: code from commit 5384a73f was not merged here as ExplainStmt->options is not supported yet in GPDB. Code to be merged: https://github.com/postgres/postgres/commit/5384a73f98d9829725186a7b65bf4f8adb3cfaf1#diff-9ce3cf19c55c48d8714787cf9e3b533f src/include/catalog/pg_type.h: original PostgreSQL's json and _json OIDs where 114 and 199. Since 114 is reserved in GPDB, current assigned OIDs are 3114 and 3199.
Showing
src/backend/utils/adt/json.c
0 → 100644
src/include/utils/json.h
0 → 100644
src/test/regress/sql/json.sql
0 → 100644
想要评论请 注册 或 登录