]> granicus.if.org Git - postgresql/commit
Suppress bogus statistics when pgbench failed to complete any transactions.
authorTom Lane <tgl@sss.pgh.pa.us>
Tue, 16 Dec 2014 19:53:55 +0000 (14:53 -0500)
committerTom Lane <tgl@sss.pgh.pa.us>
Tue, 16 Dec 2014 19:53:55 +0000 (14:53 -0500)
commitde8e46f5f5785f4016aabf2aa231faa89a0746fb
tree33fd5552d75db5e771557f22348be5e21121b755
parentd38e8d30cecea96a088330133e232c465a222d0a
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.
contrib/pgbench/pgbench.c