pg.ddx.io  pgsql-committers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Robert Haas <rhaas@postgresql.org>
To: pgsql-committers@lists.postgresql.org
Subject: pgsql: Move jsonapi.c and jsonapi.h to src/common.
Date: Wed, 29 Jan 2020 15:26:29 +0000
Message-ID: <E1iwpEb-0005Rs-Sz@gemulon.postgresql.org> (raw)

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(-)



Message-ID: <E1iwpEb-0005Rs-Sz@gemulon.postgresql.org>
Permalink:  ../E1iwpEb-0005Rs-Sz@gemulon.postgresql.org/
Also on:    postgresql.org/message-id/E1iwpEb-0005Rs-Sz@gemulon.postgresql.org

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-committers@postgresql.org
  Cc: rhaas@postgresql.org
  Subject: Re: pgsql: Move jsonapi.c and jsonapi.h to src/common.
  In-Reply-To: <E1iwpEb-0005Rs-Sz@gemulon.postgresql.org>
  References: <E1iwpEb-0005Rs-Sz@gemulon.postgresql.org>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox