Make the 'repacking index ...' message be displayed

for indexes-only repacks (not just when in dry-run mode).
This commit is contained in:
schmiddy
2014-05-24 00:09:03 -04:00
parent 69aa4f741d
commit 4eb1cef99e
3 changed files with 6 additions and 3 deletions

View File

@ -1683,6 +1683,7 @@ repack_table_indexes(PGresult *index_details)
"WHERE pgc.relname = 'index_%u' "
"AND nsp.nspname = $1", index);
params[0] = schema_name;
elog(INFO, "repacking index \"%s\".\"index_%u\"", schema_name, index);
res = execute(sql.data, 1, params);
if (PQresultStatus(res) != PGRES_TUPLES_OK)
{
@ -1705,10 +1706,7 @@ repack_table_indexes(PGresult *index_details)
}
if (dryrun)
{
elog(INFO, "repacking index \"%s\".\"index_%u\"", schema_name, index);
continue;
}
params[0] = utoa(index, buffer[0]);
res = execute("SELECT repack.repack_indexdef($1, $2, $3, true)", 3,