Skip to content
This repository was archived by the owner on Dec 17, 2024. It is now read-only.

Commit 1f6af0d

Browse files
committed
Metrics: sync 'table_stats' v10+ SQL definition with file def.
1 parent 099fe78 commit 1f6af0d

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

pgwatch2/sql/config_store/metric_definitions.sql

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1954,8 +1954,7 @@ select
19541954
autovacuum_count,
19551955
analyze_count,
19561956
autoanalyze_count,
1957-
tx_freeze_age,
1958-
relpersistence
1957+
tx_freeze_age
19591958
from q_tstats
19601959
where not tag_schema like E'\\_timescaledb%'
19611960
and not exists (select * from q_root_part where oid = q_tstats.relid)
@@ -1991,8 +1990,7 @@ select * from (
19911990
sum(autovacuum_count)::int8 autovacuum_count,
19921991
sum(analyze_count)::int8 analyze_count,
19931992
sum(autoanalyze_count)::int8 autoanalyze_count,
1994-
max(tx_freeze_age)::int8 tx_freeze_age,
1995-
max(relpersistence) relpersistence
1993+
max(tx_freeze_age)::int8 tx_freeze_age
19961994
from
19971995
q_tstats ts
19981996
join q_parts qp on qp.relid = ts.relid

0 commit comments

Comments
 (0)