pg.ddx.io  pgsql-committers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Peter Eisentraut <peter@eisentraut.org>
To: pgsql-committers@lists.postgresql.org
Subject: pgsql: Use appendStringInfoString instead of appendBinaryStringInfo whe
Date: Fri, 30 Dec 2022 10:15:36 +0000
Message-ID: <E1pBCQK-00181S-GR@gemulon.postgresql.org> (raw)

Use appendStringInfoString instead of appendBinaryStringInfo where possible

For the jsonpath output, we don't need to squeeze out every bit of
performance, so instead use a more robust coding style.  There are
similar calls in jsonb.c, which we leave alone here since there is
indeed a performance impact for bulk exports.

Discussion: https://www.postgresql.org/message-id/flat/a0086cfc-ff0f-2827-20fe-52b591d2666c%40enterprisedb.com

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/33a33f0ba4d70a704e2d6bb8ee85f29fe18cead9

Modified Files
--------------
src/backend/utils/adt/jsonpath.c | 42 ++++++++++++++++++++--------------------
1 file changed, 21 insertions(+), 21 deletions(-)



view thread (2+ messages)

Message-ID: <E1pBCQK-00181S-GR@gemulon.postgresql.org>
Permalink:  ../E1pBCQK-00181S-GR@gemulon.postgresql.org/
Also on:    postgresql.org/message-id/E1pBCQK-00181S-GR@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: peter@eisentraut.org
  Subject: Re: pgsql: Use appendStringInfoString instead of appendBinaryStringInfo whe
  In-Reply-To: <E1pBCQK-00181S-GR@gemulon.postgresql.org>
  References: <E1pBCQK-00181S-GR@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