Some refactoring to export json(b) conversion functions
authorAmit Langote <amitlan@postgresql.org>
Fri, 21 Jul 2023 02:46:56 +0000 (11:46 +0900)
committerAmit Langote <amitlan@postgresql.org>
Wed, 26 Jul 2023 08:06:03 +0000 (17:06 +0900)
commitb22391a2ff7bdfeff4438f7a9ab26de3e33fdeff
treed19d03ff3d672900360a84cae910419d1d4eeb30
parentbd88404d3cda53810e0b0144713c4b1a1dd965a8
Some refactoring to export json(b) conversion functions

This is to export datum_to_json(), datum_to_jsonb(), and
jsonb_from_cstring(), though the last one is exported as
jsonb_from_text().

A subsequent commit to add new SQL/JSON constructor functions will
need them for calling from the executor.

Discussion: https://postgr.es/m/20230720160252.ldk7jy6jqclxfxkq%40alvherre.pgsql
src/backend/utils/adt/json.c
src/backend/utils/adt/jsonb.c
src/include/utils/jsonfuncs.h