git.postgresql.org Git - postgresql.git/commit

git projects / postgresql.git / commit
? search:
summary | shortlog | log | commit | commitdiff | tree
(parent: b2b2491) | patch
Introduce jsonb, a structured format for storing json.
2014年3月23日 20:40:19 +0000 (16:40 -0400)
2014年3月23日 20:40:19 +0000 (16:40 -0400)
commit d9134d0a355cfa447adc80db4505d5931084278a
Introduce jsonb, a structured format for storing json.

The new format accepts exactly the same data as the json type. However, it is
stored in a format that does not require reparsing the orgiginal text in order
to process it, making it much more suitable for indexing and other operations.
Insignificant whitespace is discarded, and the order of object keys is not
preserved. Neither are duplicate object keys kept - the later value for a given
key is the only one stored.

The new type has all the functions and operators that the json type has,
with the exception of the json generation functions (to_json, json_agg etc.)
and with identical semantics. In addition, there are operator classes for
hash and btree indexing, and two classes for GIN indexing, that have no
equivalent in the json type.

This feature grew out of previous work by Oleg Bartunov and Teodor Sigaev, which
was intended to provide similar facilities to a nested hstore type, but which
in the end proved to have some significant compatibility issues.

Authors: Oleg Bartunov, Teodor Sigaev, Peter Geoghegan and Andrew Dunstan.
Review: Andres Freund
43 files changed:
contrib/hstore/Makefile diff | blob | blame | history
contrib/hstore/expected/hstore.out diff | blob | blame | history
contrib/hstore/hstore--1.2--1.3.sql [new file with mode: 0644] blob
contrib/hstore/hstore--1.3.sql [moved from contrib/hstore/hstore--1.2.sql with 97% similarity] diff | blob | blame | history
contrib/hstore/hstore.control diff | blob | blame | history
contrib/hstore/hstore_io.c diff | blob | blame | history
contrib/hstore/sql/hstore.sql diff | blob | blame | history
doc/src/sgml/datatype.sgml diff | blob | blame | history
doc/src/sgml/filelist.sgml diff | blob | blame | history
doc/src/sgml/func.sgml diff | blob | blame | history
doc/src/sgml/json.sgml [new file with mode: 0644] blob
src/backend/catalog/system_views.sql diff | blob | blame | history
src/backend/utils/adt/Makefile diff | blob | blame | history
src/backend/utils/adt/json.c diff | blob | blame | history
src/backend/utils/adt/jsonb.c [new file with mode: 0644] blob
src/backend/utils/adt/jsonb_gin.c [new file with mode: 0644] blob
src/backend/utils/adt/jsonb_op.c [new file with mode: 0644] blob
src/backend/utils/adt/jsonb_util.c [new file with mode: 0644] blob
src/backend/utils/adt/jsonfuncs.c diff | blob | blame | history
src/backend/utils/adt/numeric.c diff | blob | blame | history
src/include/catalog/pg_amop.h diff | blob | blame | history
src/include/catalog/pg_amproc.h diff | blob | blame | history
src/include/catalog/pg_cast.h diff | blob | blame | history
src/include/catalog/pg_opclass.h diff | blob | blame | history
src/include/catalog/pg_operator.h diff | blob | blame | history
src/include/catalog/pg_opfamily.h diff | blob | blame | history
src/include/catalog/pg_proc.h diff | blob | blame | history
src/include/catalog/pg_type.h diff | blob | blame | history
src/include/funcapi.h diff | blob | blame | history
src/include/utils/json.h diff | blob | blame | history
src/include/utils/jsonapi.h diff | blob | blame | history
src/include/utils/jsonb.h [new file with mode: 0644] blob
src/include/utils/numeric.h diff | blob | blame | history
src/test/regress/data/jsonb.data [new file with mode: 0644] blob
src/test/regress/expected/json.out diff | blob | blame | history
src/test/regress/expected/json_1.out diff | blob | blame | history
src/test/regress/expected/jsonb.out [new file with mode: 0644] blob
src/test/regress/expected/jsonb_1.out [new file with mode: 0644] blob
src/test/regress/expected/opr_sanity.out diff | blob | blame | history
src/test/regress/parallel_schedule diff | blob | blame | history
src/test/regress/serial_schedule diff | blob | blame | history
src/test/regress/sql/json.sql diff | blob | blame | history
src/test/regress/sql/jsonb.sql [new file with mode: 0644] blob
This is the main PostgreSQL git repository.
RSS Atom

AltStyle によって変換されたページ (->オリジナル) /