You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: postgres/postgres_vacuum_activity_estimate_stats.sql
+24-22Lines changed: 24 additions & 22 deletions
Original file line number
Diff line number
Diff line change
@@ -24,15 +24,8 @@ FROM
24
24
pg_class c
25
25
WHERE reloptions is NOT null)
26
26
SELECT
27
-
now(),
27
+
--to_char(now(), 'YYYY-MM-DD HH:MI'),
28
28
s.schemaname||'.'||s.relnameas relname,
29
-
case
30
-
when avacenabled.valueis not null
31
-
then avacenabled.value::text
32
-
when (select setting::textfrom pg_settings where name ='autovacuum') ='on'
33
-
then 'true'
34
-
else 'false'
35
-
end as autovac_enabled,
36
29
n_live_tup live_tup,
37
30
n_dead_tup dead_dup,
38
31
n_tup_hot_upd hot_upd,
@@ -71,15 +64,22 @@ SELECT
71
64
else ROUND((greatest(age(c.relfrozenxid),age(t.relfrozenxid))::numeric/ (select setting::numericfrom pg_settings where name ='autovacuum_freeze_max_age') *100),2)
0 commit comments