]> granicus.if.org Git - postgresql/commit
Built-in JSON data type.
authorRobert Haas <rhaas@postgresql.org>
Tue, 31 Jan 2012 16:48:23 +0000 (11:48 -0500)
committerRobert Haas <rhaas@postgresql.org>
Tue, 31 Jan 2012 16:48:23 +0000 (11:48 -0500)
commit5384a73f98d9829725186a7b65bf4f8adb3cfaf1
tree7d0906859b26e82bb5d54a5297c072b708f82dbd
parent4c6cedd1b014abf2046886a9a92e10e18f0d658e
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.
doc/src/sgml/datatype.sgml
src/backend/commands/explain.c
src/backend/utils/adt/Makefile
src/backend/utils/adt/json.c [new file with mode: 0644]
src/include/catalog/pg_proc.h
src/include/catalog/pg_type.h
src/include/utils/json.h [new file with mode: 0644]
src/test/regress/expected/json.out [new file with mode: 0644]
src/test/regress/parallel_schedule
src/test/regress/serial_schedule
src/test/regress/sql/json.sql [new file with mode: 0644]