Skip to content

Commit 5affda2

Browse files
committed
Move new log output to inside the dryrun block
1 parent f10a41c commit 5affda2

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

bin/pg_repack.c

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1704,9 +1704,11 @@ repack_table_indexes(PGresult *index_details)
17041704
continue;
17051705
}
17061706

1707-
elog(INFO, "repacking index \"%s\".\"index_%u\"", schema_name, index);
17081707
if (dryrun)
1708+
{
1709+
elog(INFO, "repacking index \"%s\".\"index_%u\"", schema_name, index);
17091710
continue;
1711+
}
17101712

17111713
params[0] = utoa(index, buffer[0]);
17121714
res = execute("SELECT repack.repack_indexdef($1, $2, $3, true)", 3,

0 commit comments

Comments
 (0)