Обсуждение: pgsql: Cleanup around json_to_record/json_to_recordset

Поиск
Список
Период
Сортировка

pgsql: Cleanup around json_to_record/json_to_recordset

От
Andrew Dunstan
Дата:
Cleanup around json_to_record/json_to_recordset

Set function parameter names and defaults. Add jsonb versions (which the
code already provided for so the actual new code is trivial). Add jsonb
regression tests and docs.

Bump catalog version (which I apparently forgot to do when jsonb was
committed).

Branch
------
master

Details
-------
http://git.postgresql.org/pg/commitdiff/f9c6d72cbf49257fea4265d994b96e66f25b2474

Modified Files
--------------
doc/src/sgml/func.sgml                |   18 +++++++++++------
src/backend/catalog/system_views.sql  |   16 +++++++++++++++
src/backend/utils/adt/jsonfuncs.c     |   36 ++++++++++++++++++++++-----------
src/include/catalog/catversion.h      |    2 +-
src/include/catalog/pg_proc.h         |    4 ++++
src/include/utils/json.h              |    2 ++
src/test/regress/expected/jsonb.out   |   16 +++++++++++++++
src/test/regress/expected/jsonb_1.out |   16 +++++++++++++++
src/test/regress/sql/jsonb.sql        |    8 ++++++++
9 files changed, 99 insertions(+), 19 deletions(-)