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,