Suppress bogus statistics when pgbench failed to complete any transactions.

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

Commit: de8e46f5f5785f4016aabf2aa231faa89a0746fb
Author: Tom Lane <tgl@sss.pgh.pa.us>
Date: 2014-12-16T19:53:55Z
Releases: 9.5.0
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