Use appendStringInfoString instead of appendBinaryStringInfo where possible
authorPeter Eisentraut <peter@eisentraut.org>
Fri, 30 Dec 2022 09:59:25 +0000 (10:59 +0100)
committerPeter Eisentraut <peter@eisentraut.org>
Fri, 30 Dec 2022 10:05:09 +0000 (11:05 +0100)
commit33a33f0ba4d70a704e2d6bb8ee85f29fe18cead9
tree20bd4f29da30156ec887e054e7a0f4db003b86a7
parentfaf3750657a8271e2a28c054fd83e47302ac1eb4
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
src/backend/utils/adt/jsonpath.c