From: Alvaro Herrera <alvherre@alvh.no-ip.org>
To: pgsql-committers@lists.postgresql.org
Subject: pgsql: Split out code into new getKeyJsonValueFromContainer()
Date: Fri, 20 Sep 2019 23:23:03 +0000
Message-ID: <E1iBSEx-0003ET-Ix@gemulon.postgresql.org> (raw)
Split out code into new getKeyJsonValueFromContainer()
The new function stashes its output value in a JsonbValue that can be
passed in by the caller, which enables some of them to pass
stack-allocated structs -- saving palloc cycles. It also allows some
callers that know they are handling a jsonb object to use this new jsonb
object-specific API, instead of going through generic container
findJsonbValueFromContainer.
Author: Nikita Glukhov
Discussion: https://postgr.es/m/7c417f90-f95f-247e-ba63-d95e39c0ad14@postgrespro.ru
Branch
------
master
Details
-------
https://git.postgresql.org/pg/commitdiff/1a2983231d9080bfa06cfbf38d5415b5d71eea91
Modified Files
--------------
src/backend/utils/adt/jsonb_util.c | 143 ++++++++++++++++++++++++-------------
src/backend/utils/adt/jsonfuncs.c | 52 +++++---------
src/include/utils/jsonb.h | 3 +
3 files changed, 113 insertions(+), 85 deletions(-)
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: alvherre@alvh.no-ip.org
Subject: Re: pgsql: Split out code into new getKeyJsonValueFromContainer()
In-Reply-To: <E1iBSEx-0003ET-Ix@gemulon.postgresql.org>
References: <E1iBSEx-0003ET-Ix@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