postgresql/src/bin/psql
David Rowley f736e188ce Standardize usages of appendStringInfo and appendPQExpBuffer
Fix a few places that were using appendStringInfo() when they should have
been using appendStringInfoString().  Also some cases of
appendPQExpBuffer() that would have been better suited to use
appendPQExpBufferChar(), and finally, some places that used
appendPQExpBuffer() when appendPQExpBufferStr() would have suited better.

There are no bugs are being fixed here.  The aim is just to make the code
use the most optimal function for the job.

All the code being changed here is new to PG14.  It makes sense to fix
these before we branch for PG15.  There are a few other places that we
could fix, but those cases are older code so fixing those seems less
worthwhile as it may cause unnecessary back-patching pain in the future.

Author: Hou Zhijie
Discussion: https://postgr.es/m/OS0PR01MB5716732158B1C4142C6FE375943D9@OS0PR01MB5716.jpnprd01.prod.outlook.com
2021-06-03 16:38:03 +12:00
..
po Translation updates 2021-05-17 14:30:27 +02:00
t Add a copyright notice to perl files lacking one. 2021-05-07 10:56:14 -04:00
.gitignore Add basic TAP tests for psql's tab-completion logic. 2020-01-02 15:02:21 -05:00
Makefile Update copyright for 2021 2021-01-02 13:06:25 -05:00
command.c Allow psql's \df and \do commands to specify argument types. 2021-04-07 23:02:21 -04:00
command.h Update copyright for 2021 2021-01-02 13:06:25 -05:00
common.c Revert "psql: Show all query results by default" 2021-04-15 19:42:55 +02:00
common.h Update copyright for 2021 2021-01-02 13:06:25 -05:00
copy.c Remove server and libpq support for old FE/BE protocol version 2. 2021-03-04 10:45:55 +02:00
copy.h Update copyright for 2021 2021-01-02 13:06:25 -05:00
create_help.pl Update copyright for 2021 2021-01-02 13:06:25 -05:00
crosstabview.c Update copyright for 2021 2021-01-02 13:06:25 -05:00
crosstabview.h Update copyright for 2021 2021-01-02 13:06:25 -05:00
describe.c Standardize usages of appendStringInfo and appendPQExpBuffer 2021-06-03 16:38:03 +12:00
describe.h Allow psql's \df and \do commands to specify argument types. 2021-04-07 23:02:21 -04:00
help.c Put some psql documentation pieces back into alphabetical order 2021-05-21 17:10:09 +02:00
help.h Update copyright for 2021 2021-01-02 13:06:25 -05:00
input.c Update copyright for 2021 2021-01-02 13:06:25 -05:00
input.h Update copyright for 2021 2021-01-02 13:06:25 -05:00
large_obj.c Update copyright for 2021 2021-01-02 13:06:25 -05:00
large_obj.h Update copyright for 2021 2021-01-02 13:06:25 -05:00
mainloop.c Update copyright for 2021 2021-01-02 13:06:25 -05:00
mainloop.h Update copyright for 2021 2021-01-02 13:06:25 -05:00
nls.mk Translation updates 2021-05-10 14:36:21 +02:00
prompt.c Update copyright for 2021 2021-01-02 13:06:25 -05:00
prompt.h Update copyright for 2021 2021-01-02 13:06:25 -05:00
psqlrc.sample Improve FILES section of psql reference page. 2014-01-14 19:27:57 -05:00
psqlscanslash.h Update copyright for 2021 2021-01-02 13:06:25 -05:00
psqlscanslash.l Update copyright for 2021 2021-01-02 13:06:25 -05:00
settings.h Revert "psql: Show all query results by default" 2021-04-15 19:42:55 +02:00
startup.c Revert "psql: Show all query results by default" 2021-04-15 19:42:55 +02:00
stringutils.c Update copyright for 2021 2021-01-02 13:06:25 -05:00
stringutils.h Update copyright for 2021 2021-01-02 13:06:25 -05:00
tab-complete.c Teach tab-complete.c about recently-added CREATE TYPE options. 2021-06-02 10:44:16 -04:00
tab-complete.h Update copyright for 2021 2021-01-02 13:06:25 -05:00
variables.c Update copyright for 2021 2021-01-02 13:06:25 -05:00
variables.h Update copyright for 2021 2021-01-02 13:06:25 -05:00