mirror of
https://github.com/postgres/postgres.git
synced 2025-06-13 07:41:39 +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)
|
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"))
|
if (PQputline(con, "\\.\n"))
|
||||||
{
|
{
|
||||||
|
Reference in New Issue
Block a user