From 51522ca6d92b6898a0c2fb9683a5e59308fdb2bf Mon Sep 17 00:00:00 2001 From: Ibrar Ahmed Date: Thu, 14 Jan 2021 10:11:37 +0000 Subject: [PATCH] =?UTF-8?q?PG-164:=20Query=20timing=20will=20be=20four=20d?= =?UTF-8?q?ecimal=20places=20instead=C2=A0of=20two.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pg_stat_monitor--1.0.sql | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/pg_stat_monitor--1.0.sql b/pg_stat_monitor--1.0.sql index 6024b7d..98a81c8 100644 --- a/pg_stat_monitor--1.0.sql +++ b/pg_stat_monitor--1.0.sql @@ -109,17 +109,17 @@ CREATE VIEW pg_stat_monitor AS SELECT sqlcode, message, plans, - round( CAST(plan_total_time as numeric), 2)::float8 as plan_total_time, - round( CAST(plan_min_time as numeric), 2)::float8 as plan_min_time, - round( CAST(plan_max_time as numeric), 2)::float8 as plan_max_time, - round( CAST(plan_mean_time as numeric), 2)::float8 as plan_mean_time, - round( CAST(plan_stddev_time as numeric), 2)::float8 as plan_stddev_time, + round( CAST(plan_total_time as numeric), 4)::float8 as plan_total_time, + round( CAST(plan_min_time as numeric), 4)::float8 as plan_min_time, + round( CAST(plan_max_time as numeric), 4)::float8 as plan_max_time, + round( CAST(plan_mean_time as numeric), 4)::float8 as plan_mean_time, + round( CAST(plan_stddev_time as numeric), 4)::float8 as plan_stddev_time, calls, - round( CAST(total_time as numeric), 2)::float8 as total_time, - round( CAST(min_time as numeric), 2)::float8 as min_time, - round( CAST(max_time as numeric), 2)::float8 as max_time, - round( CAST(mean_time as numeric), 2)::float8 as mean_time, - round( CAST(stddev_time as numeric), 2)::float8 as stddev_time, + round( CAST(total_time as numeric), 4)::float8 as total_time, + round( CAST(min_time as numeric), 4)::float8 as min_time, + round( CAST(max_time as numeric), 4)::float8 as max_time, + round( CAST(mean_time as numeric), 4)::float8 as mean_time, + round( CAST(stddev_time as numeric), 4)::float8 as stddev_time, rows, shared_blks_hit, shared_blks_read,