Use appendBinaryStringInfo in more places where the length is known

David Rowley <drowley@postgresql.org>

Commit: 1e6a759838f7c104f3cd1fe6981a98780da4131b
Author: David Rowley <drowley@postgresql.org>
Date: 2019-07-22T12:14:11Z
Releases: 13.0
Use appendBinaryStringInfo in more places where the length is known

When we already know the length that we're going to append, then it
makes sense to use appendBinaryStringInfo instead of
appendStringInfoString so that the append can be performed with a simple
memcpy() using a known length rather than having to first perform a
strlen() call to obtain the length.

Discussion: https://postgr.es/m/CAKJS1f8+FRAM1s5+mAa3isajeEoAaicJ=4e0WzrH3tAusbbiMQ@mail.gmail.com

Files

Discussion