Use appendStringInfoString instead of appendBinaryStringInfo where possible

Peter Eisentraut <peter@eisentraut.org>

Commit: 33a33f0ba4d70a704e2d6bb8ee85f29fe18cead9
Author: Peter Eisentraut <peter@eisentraut.org>
Date: 2022-12-30T10:05:09Z
Releases: 16.0
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

Files

PathChange+/−
src/backend/utils/adt/jsonpath.c modified +21 −21

Discussion