diff options
author | Heikki Linnakangas <heikki.linnakangas@iki.fi> | 2015-07-02 12:32:48 +0300 |
---|---|---|
committer | Heikki Linnakangas <heikki.linnakangas@iki.fi> | 2015-07-02 12:36:03 +0300 |
commit | f92d6a540ac443f85f0929b284edff67da14687a (patch) | |
tree | 3c7e4d5d882889255b7e6b19e1343e37fa812e03 /src/bin/scripts/vacuumdb.c | |
parent | 7931622d1d942dbbba8d0eab77f18f69f1ce5de0 (diff) | |
download | postgresql-f92d6a540ac443f85f0929b284edff67da14687a.tar.gz postgresql-f92d6a540ac443f85f0929b284edff67da14687a.zip |
Use appendStringInfoString/Char et al where appropriate.
Patch by David Rowley. Backpatch to 9.5, as some of the calls were new in
9.5, and keeping the code in sync with master makes future backpatching
easier.
Diffstat (limited to 'src/bin/scripts/vacuumdb.c')
-rw-r--r-- | src/bin/scripts/vacuumdb.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/bin/scripts/vacuumdb.c b/src/bin/scripts/vacuumdb.c index f600b0514a8..ca6d0036832 100644 --- a/src/bin/scripts/vacuumdb.c +++ b/src/bin/scripts/vacuumdb.c @@ -392,7 +392,7 @@ vacuum_one_database(const char *dbname, vacuumingOptions *vacopts, ntups = PQntuples(res); for (i = 0; i < ntups; i++) { - appendPQExpBuffer(&buf, "%s", + appendPQExpBufferStr(&buf, fmtQualifiedId(PQserverVersion(conn), PQgetvalue(res, i, 1), PQgetvalue(res, i, 0))); @@ -643,7 +643,7 @@ prepare_vacuum_command(PQExpBuffer sql, PGconn *conn, vacuumingOptions *vacopts, sep = comma; } if (sep != paren) - appendPQExpBufferStr(sql, ")"); + appendPQExpBufferChar(sql, ')'); } else { |