| Safe Haskell | None |
|---|---|
| Language | GHC2024 |
Arbiter.Core.Sql.Health
Description
Postgres health SQL: reads over the stats and catalog views. The caller attaches the row decoder.
Synopsis
- pgDbHealthSQL :: Query ()
- pgTableHealthSQL :: SchemaName -> [TableName] -> Query ()
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.