Move new log output to inside the dryrun block

This commit is contained in:
Steeve Lennmark 2014-01-30 12:53:22 +00:00
parent f10a41c4e1
commit 5affda20ea

View File

@ -1704,9 +1704,11 @@ repack_table_indexes(PGresult *index_details)
continue;
}
elog(INFO, "repacking index \"%s\".\"index_%u\"", schema_name, index);
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,