mirror of
https://github.com/postgres/postgres.git
synced 2025-06-11 20:28:21 +03:00
pgbench: Show better progress when loading tuples
Show target number of tuples and percentage in addition to current number.
This commit is contained in:
@ -1420,7 +1420,9 @@ init(bool is_no_vacuum)
|
||||
}
|
||||
|
||||
if (j % 100000 == 0)
|
||||
fprintf(stderr, "%d tuples done.\n", j);
|
||||
fprintf(stderr, "%d of %d tuples (%d%%) done.\n",
|
||||
j, naccounts * scale,
|
||||
j * 100 / (naccounts * scale));
|
||||
}
|
||||
if (PQputline(con, "\\.\n"))
|
||||
{
|
||||
|
Reference in New Issue
Block a user