aboutsummaryrefslogtreecommitdiff
path: root/src/bin/scripts/clusterdb.c
diff options
context:
space:
mode:
authorHeikki Linnakangas <heikki.linnakangas@iki.fi>2013-11-18 18:29:01 +0200
committerHeikki Linnakangas <heikki.linnakangas@iki.fi>2013-11-18 18:34:51 +0200
commit32ceba3ea730b6b1bd3eca786f72d61945ad42b7 (patch)
tree4370209d2561aeff498b30303ead012e162f2cd9 /src/bin/scripts/clusterdb.c
parentf1df4731eea6bc05e0769e9cc789e7304722efe4 (diff)
downloadpostgresql-32ceba3ea730b6b1bd3eca786f72d61945ad42b7.tar.gz
postgresql-32ceba3ea730b6b1bd3eca786f72d61945ad42b7.zip
Replace appendPQExpBuffer(..., <constant>) with appendPQExpBufferStr
Arguably makes the code a bit more readable, and might give a small performance gain. David Rowley
Diffstat (limited to 'src/bin/scripts/clusterdb.c')
-rw-r--r--src/bin/scripts/clusterdb.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/bin/scripts/clusterdb.c b/src/bin/scripts/clusterdb.c
index 0ac213d3c31..cd54e8f47f7 100644
--- a/src/bin/scripts/clusterdb.c
+++ b/src/bin/scripts/clusterdb.c
@@ -196,12 +196,12 @@ cluster_one_database(const char *dbname, bool verbose, const char *table,
initPQExpBuffer(&sql);
- appendPQExpBuffer(&sql, "CLUSTER");
+ appendPQExpBufferStr(&sql, "CLUSTER");
if (verbose)
- appendPQExpBuffer(&sql, " VERBOSE");
+ appendPQExpBufferStr(&sql, " VERBOSE");
if (table)
appendPQExpBuffer(&sql, " %s", table);
- appendPQExpBuffer(&sql, ";\n");
+ appendPQExpBufferStr(&sql, ";\n");
conn = connectDatabase(dbname, host, port, username, prompt_password,
progname, false);