pg.ddx.io pgsql-bugs@postgresql.org mailing list archive
help / color / mirror / Atom feedpgbench % output incorrect with large scales
2+ messages / 2 participants
[nested] [flat]
* pgbench % output incorrect with large scales
@ 2012-10-20 12:30 Thom Brown <thom@linux.com>
2012-10-20 16:46 ` Re: pgbench % output incorrect with large scales Tom Lane <tgl@sss.pgh.pa.us>
0 siblings, 1 reply; 2+ messages in thread
From: Thom Brown @ 2012-10-20 12:30 UTC (permalink / raw)
To: pgsql-bugs
Hi all,
I've run pgbench with a scale of 2000, and have noticed that the %
done goes a bit wonky:
thom@bison:~$ pgbench -i -s 2000 pgbench
NOTICE: table "pgbench_history" does not exist, skipping
NOTICE: table "pgbench_tellers" does not exist, skipping
NOTICE: table "pgbench_accounts" does not exist, skipping
NOTICE: table "pgbench_branches" does not exist, skipping
creating tables...
100000 of 200000000 tuples (0%) done.
200000 of 200000000 tuples (0%) done.
300000 of 200000000 tuples (0%) done.
...
2000000 of 200000000 tuples (1%) done.
...
20000000 of 200000000 tuples (10%) done.
...
21500000 of 200000000 tuples (-10%) done.
...
23000000 of 200000000 tuples (-9%) done.
...
31000000 of 200000000 tuples (-5%) done.
...
41000000 of 200000000 tuples (0%) done.
and so on, and so forth.
Presumably this is just an int overflowing repeatedly.
--
Thom
^ permalink raw reply [nested|flat] 2+ messages in thread
* Re: pgbench % output incorrect with large scales
2012-10-20 12:30 pgbench % output incorrect with large scales Thom Brown <thom@linux.com>
@ 2012-10-20 16:46 ` Tom Lane <tgl@sss.pgh.pa.us>
0 siblings, 0 replies; 2+ messages in thread
From: Tom Lane @ 2012-10-20 16:46 UTC (permalink / raw)
To: Thom Brown <thom@linux.com>; +Cc: pgsql-bugs
Thom Brown <thom@linux.com> writes:
> I've run pgbench with a scale of 2000, and have noticed that the %
> done goes a bit wonky:
> ...
> Presumably this is just an int overflowing repeatedly.
Yeah, fixed. Thanks for the report!
(FWIW, you're not all that far away from the threshold where the integer
table columns wouldn't be wide enough. I don't think we want to change
those datatypes, though.)
regards, tom lane
^ permalink raw reply [nested|flat] 2+ messages in thread
end of thread, other threads:[~2012-10-20 16:46 UTC | newest]
Thread overview: 2+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2012-10-20 12:30 pgbench % output incorrect with large scales Thom Brown <thom@linux.com>
2012-10-20 16:46 ` Tom Lane <tgl@sss.pgh.pa.us>
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox