From c866672ea9ee3701bd147fcd3de0ee7202e112e3 Mon Sep 17 00:00:00 2001 From: Rach Belaid Date: Wed, 6 Jan 2016 22:45:03 -0800 Subject: [PATCH] Fix #22 Avoid to floating point numbers & scientific notation with numeric type --- query.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/query.go b/query.go index 88e6712..b484d3b 100644 --- a/query.go +++ b/query.go @@ -194,7 +194,7 @@ SELECT schemaname || '.' || tblname AS key, schemaname as schema, tblname as tab -- ELSE 0 -- END AS extra_ratio, fillfactor, CASE WHEN (tblpages-est_tblpages_ff)*bs > 0 - THEN (tblpages-est_tblpages_ff)*bs + THEN ((tblpages-est_tblpages_ff)*bs)::bigint ELSE 0 END AS bloat_bytes, CASE WHEN tblpages - est_tblpages_ff > 0