From: Alvaro Herrera <alvherre@alvh.no-ip.org>
To: pgsql-committers@lists.postgresql.org
Subject: pgsql: Refactor code into new JsonbValueAsText, and use it more
Date: Fri, 20 Sep 2019 22:37:20 +0000
Message-ID: <E1iBRWi-0002ou-Gl@gemulon.postgresql.org> (raw)
Refactor code into new JsonbValueAsText, and use it more
jsonb_object_field_text and jsonb_array_element_text both contained
identical copies of this code, so extract that into new routine
JsonbValueAsText. This can also be used in other places, to measurable
performance benefit: the jsonb_each() and jsonb_array_elements()
functions can use it for outputting text forms instead of their less
efficient current implementation (because we no longer need to build
intermediate a jsonb representation of each value).
Author: Nikita Glukhov
Discussion: https://postgr.es/m/7c417f90-f95f-247e-ba63-d95e39c0ad14@postgrespro.ru
Branch
------
master
Details
-------
https://git.postgresql.org/pg/commitdiff/abb014a63106653f2872a3b1662a79ab80d4dcbb
Modified Files
--------------
src/backend/utils/adt/jsonfuncs.c | 173 ++++++++++++++------------------------
1 file changed, 61 insertions(+), 112 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: Refactor code into new JsonbValueAsText, and use it more
In-Reply-To: <E1iBRWi-0002ou-Gl@gemulon.postgresql.org>
References: <E1iBRWi-0002ou-Gl@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