mirror of
https://github.com/percona/pg_stat_monitor.git
synced 2026-02-04 14:06:20 +00:00
PG-164: Query timing will be four decimal places instead of two.
This commit is contained in:
@@ -109,17 +109,17 @@ CREATE VIEW pg_stat_monitor AS SELECT
|
|||||||
sqlcode,
|
sqlcode,
|
||||||
message,
|
message,
|
||||||
plans,
|
plans,
|
||||||
round( CAST(plan_total_time as numeric), 2)::float8 as plan_total_time,
|
round( CAST(plan_total_time as numeric), 4)::float8 as plan_total_time,
|
||||||
round( CAST(plan_min_time as numeric), 2)::float8 as plan_min_time,
|
round( CAST(plan_min_time as numeric), 4)::float8 as plan_min_time,
|
||||||
round( CAST(plan_max_time as numeric), 2)::float8 as plan_max_time,
|
round( CAST(plan_max_time as numeric), 4)::float8 as plan_max_time,
|
||||||
round( CAST(plan_mean_time as numeric), 2)::float8 as plan_mean_time,
|
round( CAST(plan_mean_time as numeric), 4)::float8 as plan_mean_time,
|
||||||
round( CAST(plan_stddev_time as numeric), 2)::float8 as plan_stddev_time,
|
round( CAST(plan_stddev_time as numeric), 4)::float8 as plan_stddev_time,
|
||||||
calls,
|
calls,
|
||||||
round( CAST(total_time as numeric), 2)::float8 as total_time,
|
round( CAST(total_time as numeric), 4)::float8 as total_time,
|
||||||
round( CAST(min_time as numeric), 2)::float8 as min_time,
|
round( CAST(min_time as numeric), 4)::float8 as min_time,
|
||||||
round( CAST(max_time as numeric), 2)::float8 as max_time,
|
round( CAST(max_time as numeric), 4)::float8 as max_time,
|
||||||
round( CAST(mean_time as numeric), 2)::float8 as mean_time,
|
round( CAST(mean_time as numeric), 4)::float8 as mean_time,
|
||||||
round( CAST(stddev_time as numeric), 2)::float8 as stddev_time,
|
round( CAST(stddev_time as numeric), 4)::float8 as stddev_time,
|
||||||
rows,
|
rows,
|
||||||
shared_blks_hit,
|
shared_blks_hit,
|
||||||
shared_blks_read,
|
shared_blks_read,
|
||||||
|
|||||||
Reference in New Issue
Block a user