Commit 4c60b800 authored by Peter Eisentraut's avatar Peter Eisentraut

pgbench: Show better progress when loading tuples

Show target number of tuples and percentage in addition to current
number.
parent ab9a14e9
...@@ -1420,7 +1420,9 @@ init(bool is_no_vacuum) ...@@ -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"))
{ {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment