| Safe Haskell | None |
|---|---|
| Language | GHC2024 |
Arbiter.Core.Sql.Health
Description
Internal to the arbiter packages. Not covered by the PVP.
Postgres health SQL: reads over the stats and catalog views. The caller attaches the row decoder.
Synopsis
- pgDbHealthSQL :: Query ()
- pgTableHealthSQL :: SchemaName -> [TableName] -> Query ()
Documentation
pgDbHealthSQL :: Query ()Source #
One row of connection state for the current database. Skips the reading backend.
Every connection reading comes from pg_stat_activity.
pgTableHealthSQL :: SchemaName -> [TableName] -> Query ()Source #
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.