aboutsummaryrefslogtreecommitdiff
path: root/src/bin/scripts/reindexdb.c
diff options
context:
space:
mode:
authorDavid Rowley <drowley@postgresql.org>2019-07-04 13:01:13 +1200
committerDavid Rowley <drowley@postgresql.org>2019-07-04 13:01:13 +1200
commit8abc13a88938ef473b8a486186f1b96630450728 (patch)
tree111864d4f940154a6fd64fd50bc528d396ccde30 /src/bin/scripts/reindexdb.c
parent5683b34956b4e8da9dccadc2e3a53b86104ebb33 (diff)
downloadpostgresql-8abc13a88938ef473b8a486186f1b96630450728.tar.gz
postgresql-8abc13a88938ef473b8a486186f1b96630450728.zip
Use appendStringInfoString and appendPQExpBufferStr where possible
This changes various places where appendPQExpBuffer was used in places where it was possible to use appendPQExpBufferStr, and likewise for appendStringInfo and appendStringInfoString. This is really just a stylistic improvement, but there are also small performance gains to be had from doing this. Discussion: http://postgr.es/m/CAKJS1f9P=M-3ULmPvr8iCno8yvfDViHibJjpriHU8+SXUgeZ=w@mail.gmail.com
Diffstat (limited to 'src/bin/scripts/reindexdb.c')
-rw-r--r--src/bin/scripts/reindexdb.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/bin/scripts/reindexdb.c b/src/bin/scripts/reindexdb.c
index 3528de21e04..ca61348a0e5 100644
--- a/src/bin/scripts/reindexdb.c
+++ b/src/bin/scripts/reindexdb.c
@@ -420,7 +420,7 @@ reindex_all_databases(const char *maintenance_db,
}
resetPQExpBuffer(&connstr);
- appendPQExpBuffer(&connstr, "dbname=");
+ appendPQExpBufferStr(&connstr, "dbname=");
appendConnStrVal(&connstr, dbname);
reindex_one_database(NULL, connstr.data, REINDEX_DATABASE, host,