Skip to content

Commit 4c60b80

Browse files
committed
pgbench: Show better progress when loading tuples
Show target number of tuples and percentage in addition to current number.
1 parent ab9a14e commit 4c60b80

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

contrib/pgbench/pgbench.c

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1420,7 +1420,9 @@ init(bool is_no_vacuum)
14201420
}
14211421

14221422
if (j % 100000 == 0)
1423-
fprintf(stderr, "%d tuples done.\n", j);
1423+
fprintf(stderr, "%d of %d tuples (%d%%) done.\n",
1424+
j, naccounts * scale,
1425+
j * 100 / (naccounts * scale));
14241426
}
14251427
if (PQputline(con, "\\.\n"))
14261428
{

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy