arbiter-core-0.1.0.0
arbiter-core
Safe HaskellNone
LanguageGHC2024

Arbiter.Core.Sql.Health

Description

Postgres health SQL: reads over the stats and catalog views. The caller attaches the row decoder.

Synopsis

Documentation

Source #pgDbHealthSQL :: Query ()

One row of connection state for the current database. Skips the reading backend. Every connection reading comes from pg_stat_activity.

Source #pgTableHealthSQL :: SchemaName -> [TableName] -> Query ()

Per-table churn, block traffic, and freeze age for arbiter's own tables, one row per table. Block counts total the heap, index, and toast reads.