File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -407,8 +407,8 @@ fn get_database_stats(cli: &mut Client) -> anyhow::Result<(f64, i64)> {
407407 // like `postgres_exporter` use it to query Postgres statistics.
408408 // Use explicit 8 bytes type casts to match Rust types.
409409 let stats = cli. query_one (
410- "SELECT pg_catalog.coalesce (pg_catalog.sum(active_time), 0.0)::pg_catalog.float8 AS total_active_time,
411- pg_catalog.coalesce (pg_catalog.sum(sessions), 0)::pg_catalog.bigint AS total_sessions
410+ "SELECT COALESCE (pg_catalog.sum(active_time), 0.0)::pg_catalog.float8 AS total_active_time,
411+ COALESCE (pg_catalog.sum(sessions), 0)::pg_catalog.bigint AS total_sessions
412412 FROM pg_catalog.pg_stat_database
413413 WHERE datname NOT IN (
414414 'postgres',
You can’t perform that action at this time.
0 commit comments