pgsql: Move jsonapi.c and jsonapi.h to src/common.

From: Robert Haas <rhaas(at)postgresql(dot)org>
To: pgsql-committers(at)lists(dot)postgresql(dot)org
Subject: pgsql: Move jsonapi.c and jsonapi.h to src/common.
Date: 2020-01-29 15:26:29
Message-ID: E1iwpEb-0005Rs-Sz@gemulon.postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-committers

Move jsonapi.c and jsonapi.h to src/common.

To make this work, (1) makeJsonLexContextCstringLen now takes the
encoding to be used as an argument; (2) check_stack_depth() is made to
do nothing in frontend code, and (3) elog(ERROR, ...) is changed to
pg_log_fatal + exit in frontend code.

Mark Dilger, reviewed and slightly revised by me.

Discussion: http://postgr.es/m/CA+TgmoYfOXhd27MUDGioVh6QtpD0C1K-f6ObSA10AWiHBAL5bA@mail.gmail.com

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/beb4699091e9fab1c5f465056bef35c9ddf7f9fc

Modified Files
--------------
contrib/hstore/hstore_io.c | 2 +-
src/backend/tsearch/to_tsany.c | 2 +-
src/backend/tsearch/wparser.c | 2 +-
src/backend/utils/adt/Makefile | 1 -
src/backend/utils/adt/json.c | 2 +-
src/backend/utils/adt/jsonb.c | 2 +-
src/backend/utils/adt/jsonb_util.c | 2 +-
src/backend/utils/adt/jsonfuncs.c | 7 +++---
src/common/Makefile | 1 +
src/{backend/utils/adt => common}/jsonapi.c | 36 +++++++++++++++++++++--------
src/include/{utils => common}/jsonapi.h | 2 ++
src/include/utils/jsonfuncs.h | 2 +-
12 files changed, 41 insertions(+), 20 deletions(-)

Browse pgsql-committers by date

  From Date Subject
Next Message Tom Lane 2020-01-29 15:28:51 Re: pgsql: Add a non-strict version of jsonb_set
Previous Message Peter Eisentraut 2020-01-29 14:58:54 pgsql: Fail if recovery target is not reached