postgresql/src/bin/scripts
David Rowley 110d81728a Fixup some appendStringInfo and appendPQExpBuffer calls
A number of places were using appendStringInfo() when they could have been
using appendStringInfoString() instead.  While there's no functionality
change there, it's just more efficient to use appendStringInfoString()
when no formatting is required.  Likewise for some
appendStringInfoString() calls which were just appending a single char.
We can just use appendStringInfoChar() for that.

Additionally, many places were using appendPQExpBuffer() when they could
have used appendPQExpBufferStr(). Change those too.

Patch by Zhijie Hou, but further searching by me found significantly more
places that deserved the same treatment.

Author: Zhijie Hou, David Rowley
Discussion: https://postgr.es/m/cb172cf4361e4c7ba7167429070979d4@G08CNEXMBPEKD05.g08.fujitsu.local
2020-10-15 20:35:17 +13:00
..
po Translation updates 2020-05-18 12:49:30 +02:00
t Add --no-index-cleanup and --no-truncate to vacuumdb. 2020-06-22 13:23:38 +09:00
.gitignore Remove createlang and droplang 2017-03-23 14:16:45 -04:00
clusterdb.c Add PostgreSQL home page to --help output 2020-02-28 13:12:21 +01:00
common.c Remove arbitrary restrictions on password length. 2020-09-03 20:09:18 -04:00
common.h Update copyrights for 2020 2020-01-01 12:21:45 -05:00
createdb.c Add PostgreSQL home page to --help output 2020-02-28 13:12:21 +01:00
createuser.c Remove arbitrary restrictions on password length. 2020-09-03 20:09:18 -04:00
dropdb.c Put new command-line options into alphabetical order in help output 2020-05-01 11:49:52 +02:00
dropuser.c Remove arbitrary restrictions on password length. 2020-09-03 20:09:18 -04:00
Makefile Update copyrights for 2020 2020-01-01 12:21:45 -05:00
nls.mk Add missing source files to nls.mk 2020-06-06 19:56:21 +02:00
pg_isready.c Add PostgreSQL home page to --help output 2020-02-28 13:12:21 +01:00
reindexdb.c Fixup some appendStringInfo and appendPQExpBuffer calls 2020-10-15 20:35:17 +13:00
scripts_parallel.c Rethink definition of cancel.c's CancelRequested flag. 2020-06-07 13:07:34 -04:00
scripts_parallel.h Update copyrights for 2020 2020-01-01 12:21:45 -05:00
vacuumdb.c Message fixes and style improvements 2020-09-14 06:42:30 +02:00