Fixup some appendStringInfo and appendPQExpBuffer calls
Zhijie Hou (Fujitsu) <houzj.fnst@fujitsu.com>
From: "houzj.fnst@fujitsu.com" <houzj.fnst@fujitsu.com>
To: PostgreSQL Hackers <pgsql-hackers@lists.postgresql.org>
Date: 2021-06-02T01:37:51Z
Lists: pgsql-hackers
Attachments
- 0001-Fixup-some-appendStringInfo-and-appendPQExpBuffer-ca.patch (application/octet-stream) patch 0001
Hi, In the latest HEAD branch, I found some places were using appendStringInfo/appendPQExpBuffer() when they could have been using appendStringInfoString/ appendPQExpBufferStr() instead. I think we'd better fix these places in case other developers will use these codes as a reference, though, it seems will not bring noticeable performance gain. Attaching a patch to fix these places. Best regards, houzj
Commits
-
Clean up some questionable usages of DatumGet* macros
- 8bdb36aab287 14.0 landed
-
Standardize usages of appendStringInfo and appendPQExpBuffer
- f736e188ce70 14.0 landed