Some refactoring to export json(b) conversion functions
Amit Langote <amitlan@postgresql.org>
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
Files
| Path | Change | +/− |
|---|---|---|
| src/backend/utils/adt/jsonb.c | modified | +48 −19 |
| src/backend/utils/adt/json.c | modified | +37 −22 |
| src/include/utils/jsonfuncs.h | modified | +5 −0 |
Discussion
- remaining sql/json patches 300 messages · 2023-06-19 → 2024-11-14