Suppress bogus statistics when pgbench failed to complete any transactions.

Tom Lane <tgl@sss.pgh.pa.us>

Commit: f2a3cdb6dbe4984c7b5461ed4ece789eab2faf4a
Author: Tom Lane <tgl@sss.pgh.pa.us>
Date: 2014-12-16T19:53:58Z
Releases: 9.4.1
Suppress bogus statistics when pgbench failed to complete any transactions.

Code added in 9.4 would attempt to divide by zero in such cases.
Noted while testing fix for missing-pclose problem.

Files

PathChange+/−
contrib/pgbench/pgbench.c modified +4 −0