diff options
| author | Heikki Linnakangas | 2013-11-18 16:29:01 +0000 |
|---|---|---|
| committer | Heikki Linnakangas | 2013-11-18 16:34:51 +0000 |
| commit | 32ceba3ea730b6b1bd3eca786f72d61945ad42b7 (patch) | |
| tree | 4370209d2561aeff498b30303ead012e162f2cd9 /src/bin/scripts/reindexdb.c | |
| parent | f1df4731eea6bc05e0769e9cc789e7304722efe4 (diff) | |
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/reindexdb.c')
| -rw-r--r-- | src/bin/scripts/reindexdb.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/bin/scripts/reindexdb.c b/src/bin/scripts/reindexdb.c index 342e4c94d1a..f7c09bebf8a 100644 --- a/src/bin/scripts/reindexdb.c +++ b/src/bin/scripts/reindexdb.c @@ -246,14 +246,14 @@ reindex_one_database(const char *name, const char *dbname, const char *type, initPQExpBuffer(&sql); - appendPQExpBuffer(&sql, "REINDEX"); + appendPQExpBufferStr(&sql, "REINDEX"); if (strcmp(type, "TABLE") == 0) appendPQExpBuffer(&sql, " TABLE %s", name); else if (strcmp(type, "INDEX") == 0) appendPQExpBuffer(&sql, " INDEX %s", name); else if (strcmp(type, "DATABASE") == 0) appendPQExpBuffer(&sql, " DATABASE %s", fmtId(name)); - appendPQExpBuffer(&sql, ";\n"); + appendPQExpBufferStr(&sql, ";\n"); conn = connectDatabase(dbname, host, port, username, prompt_password, progname, false); |
