-
- Downloads
Additional functions and operators for jsonb
jsonb_pretty(jsonb) produces nicely indented json output. jsonb || jsonb concatenates two jsonb values. jsonb - text removes a key and its associated value from the json jsonb - int removes the designated array element jsonb - text[] removes a key and associated value or array element at the designated path jsonb_replace(jsonb,text[],jsonb) replaces the array element designated by the path or the value associated with the key designated by the path with the given value. Original work by Dmitry Dolgov, adapted and reworked for PostgreSQL core by Andrew Dunstan, reviewed and tidied up by Petr Jelinek.
Showing
- doc/src/sgml/func.sgml 62 additions, 0 deletionsdoc/src/sgml/func.sgml
- src/backend/utils/adt/jsonb.c 70 additions, 11 deletionssrc/backend/utils/adt/jsonb.c
- src/backend/utils/adt/jsonfuncs.c 717 additions, 0 deletionssrc/backend/utils/adt/jsonfuncs.c
- src/include/catalog/pg_operator.h 8 additions, 0 deletionssrc/include/catalog/pg_operator.h
- src/include/catalog/pg_proc.h 8 additions, 1 deletionsrc/include/catalog/pg_proc.h
- src/include/utils/jsonb.h 18 additions, 1 deletionsrc/include/utils/jsonb.h
- src/test/regress/expected/jsonb.out 423 additions, 1 deletionsrc/test/regress/expected/jsonb.out
- src/test/regress/expected/jsonb_1.out 423 additions, 1 deletionsrc/test/regress/expected/jsonb_1.out
- src/test/regress/sql/jsonb.sql 84 additions, 1 deletionsrc/test/regress/sql/jsonb.sql
Loading
Please register or sign in to comment