Skip to content

Commit fbe2b85

Browse files
committed
1: show stats age in DB section (because stats are stored in each DB sepately)
1 parent dee6e55 commit fbe2b85

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

sql/1_basic.sql

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -37,14 +37,14 @@ select 'Uptime', (now() - pg_postmaster_start_time())::interval(0)::text
3737
union all
3838
select repeat('-', 33), repeat('-', 88)
3939
union all
40-
select 'Stats Since', stats_reset::timestamptz(0)::text from data
41-
union all
42-
select 'Stats Age', (now() - stats_reset)::interval(0)::text from data
43-
union all
4440
select 'Database Name' as metric, datname as value from data
4541
union all
4642
select 'Database Size', pg_catalog.pg_size_pretty(pg_catalog.pg_database_size(current_database()))
4743
union all
44+
select 'Stats Since', stats_reset::timestamptz(0)::text from data
45+
union all
46+
select 'Stats Age', (now() - stats_reset)::interval(0)::text from data
47+
union all
4848
select 'Installed Extensions', (
4949
with exts as (
5050
select extname || ' ' || extversion e, (-1 + row_number() over (order by extname)) / 5 i from pg_extension

0 commit comments

Comments
 (0)