-
- Downloads
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.
Showing
- doc/src/sgml/datatype.sgml 32 additions, 0 deletionsdoc/src/sgml/datatype.sgml
- src/backend/commands/explain.c 8 additions, 3 deletionssrc/backend/commands/explain.c
- src/backend/utils/adt/Makefile 1 addition, 1 deletionsrc/backend/utils/adt/Makefile
- src/backend/utils/adt/json.c 665 additions, 0 deletionssrc/backend/utils/adt/json.c
- src/include/catalog/pg_proc.h 10 additions, 0 deletionssrc/include/catalog/pg_proc.h
- src/include/catalog/pg_type.h 3 additions, 0 deletionssrc/include/catalog/pg_type.h
- src/include/utils/json.h 24 additions, 0 deletionssrc/include/utils/json.h
- src/test/regress/expected/json.out 258 additions, 0 deletionssrc/test/regress/expected/json.out
- src/test/regress/parallel_schedule 1 addition, 1 deletionsrc/test/regress/parallel_schedule
- src/test/regress/serial_schedule 1 addition, 0 deletionssrc/test/regress/serial_schedule
- src/test/regress/sql/json.sql 56 additions, 0 deletionssrc/test/regress/sql/json.sql
Loading
Please register or sign in to comment