Skip to content

Commit

Permalink
Metrics: sync 'table_stats' v10+ SQL definition with file def.
Browse files Browse the repository at this point in the history
  • Loading branch information
kmoppel committed May 3, 2021
1 parent 099fe78 commit 1f6af0d
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions pgwatch2/sql/config_store/metric_definitions.sql
Expand Up @@ -1954,8 +1954,7 @@ select
autovacuum_count,
analyze_count,
autoanalyze_count,
tx_freeze_age,
relpersistence
tx_freeze_age
from q_tstats
where not tag_schema like E'\\_timescaledb%'
and not exists (select * from q_root_part where oid = q_tstats.relid)
Expand Down Expand Up @@ -1991,8 +1990,7 @@ select * from (
sum(autovacuum_count)::int8 autovacuum_count,
sum(analyze_count)::int8 analyze_count,
sum(autoanalyze_count)::int8 autoanalyze_count,
max(tx_freeze_age)::int8 tx_freeze_age,
max(relpersistence) relpersistence
max(tx_freeze_age)::int8 tx_freeze_age
from
q_tstats ts
join q_parts qp on qp.relid = ts.relid
Expand Down

0 comments on commit 1f6af0d

Please sign in to comment.