Fix possible division by zero in pg_xlogdump.

Andres Freund <andres@anarazel.de>

Commit: 9fe1d9ac6820cff354a5402114b96dae1221eba3
Author: Andres Freund <andres@anarazel.de>
Date: 2015-04-26T16:02:32Z
Releases: 9.5.0
Fix possible division by zero in pg_xlogdump.

When displaying stats it was possible that a floating point division by
zero occured when no FPIs were issued for a type of record.

Author: Abhijit Menon-Sen
Discussion: 20150417091811.GA14008@toroid.org

Files

PathChange+/−
src/bin/pg_xlogdump/pg_xlogdump.c modified +38 −15