aboutsummaryrefslogtreecommitdiff
path: root/src/bin/scripts/reindexdb.c
diff options
context:
space:
mode:
authorBruce Momjian <bruce@momjian.us>2011-09-10 16:39:02 -0400
committerBruce Momjian <bruce@momjian.us>2011-09-10 16:39:02 -0400
commitd68ccf536e950a07b5a7030bf609936fe65aab51 (patch)
treee368f820c32742c6747a1f33b1b0ae746e683be0 /src/bin/scripts/reindexdb.c
parent52ce20589a8bac4eccaea043b1fe283daaf4f9e3 (diff)
downloadpostgresql-d68ccf536e950a07b5a7030bf609936fe65aab51.tar.gz
postgresql-d68ccf536e950a07b5a7030bf609936fe65aab51.zip
Remove double-quoting of table names in clusterdb. BACKWARD COMPABILITY
BREAKAGE. Remove double-quoting of index/table names in reindexdb. BACKWARD COMPABILITY BREAKAGE. Document thate user/database names are preserved with double-quoting by command-line tools like vacuumdb.
Diffstat (limited to 'src/bin/scripts/reindexdb.c')
-rw-r--r--src/bin/scripts/reindexdb.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/bin/scripts/reindexdb.c b/src/bin/scripts/reindexdb.c
index 53fff01a74b..caeed7511ee 100644
--- a/src/bin/scripts/reindexdb.c
+++ b/src/bin/scripts/reindexdb.c
@@ -223,9 +223,9 @@ reindex_one_database(const char *name, const char *dbname, const char *type,
appendPQExpBuffer(&sql, "REINDEX");
if (strcmp(type, "TABLE") == 0)
- appendPQExpBuffer(&sql, " TABLE %s", fmtId(name));
+ appendPQExpBuffer(&sql, " TABLE %s", name);
else if (strcmp(type, "INDEX") == 0)
- appendPQExpBuffer(&sql, " INDEX %s", fmtId(name));
+ appendPQExpBuffer(&sql, " INDEX %s", name);
else if (strcmp(type, "DATABASE") == 0)
appendPQExpBuffer(&sql, " DATABASE %s", fmtId(name));
appendPQExpBuffer(&sql, ";\n");