pgsql: Fix possible division by zero in pg_xlogdump. - Mailing list pgsql-committers

From Andres Freund
Subject pgsql: Fix possible division by zero in pg_xlogdump.
Date
Msg-id E1YmP1T-0003Rl-Hs@gemulon.postgresql.org
Whole thread Raw
List pgsql-committers
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

Branch
------
master

Details
-------
http://git.postgresql.org/pg/commitdiff/9fe1d9ac6820cff354a5402114b96dae1221eba3

Modified Files
--------------
src/bin/pg_xlogdump/pg_xlogdump.c |   53 ++++++++++++++++++++++++++-----------
1 file changed, 38 insertions(+), 15 deletions(-)


pgsql-committers by date:

Previous
From: Peter Eisentraut
Date:
Subject: pgsql: Add transforms feature
Next
From: Tom Lane
Date:
Subject: Re: pgsql: Add transforms feature