pgslot
pgslot · Replication slot WAL health, history and downstream diagnostics
Overview
| ID | Extension | Package | Version | Category | License | Language |
|---|---|---|---|---|---|---|
| 102101 | pgslot | pgslot | 0.5 | STAT | Apache-2.0 | SQL |
PostgreSQL · 15
Usage
Sources:
pgslot records replication-slot history and derives WAL retention, consumption rates and downstream pipeline health. Its SQL extension does not advance or remove replication slots.
Core Workflow
Operational Boundaries
Install with a superuser. The fixed pgslot schema exposes slot_health, wal_summary and slot_pipeline; report_metric accepts adapter metrics. Apply the upstream role grants: pgslot_monitor reads views, pgslot_collector runs collection/pruning, and pgslot_adapter reports metrics. The raw history tables and privileged functions are revoked from PUBLIC. Schedule collect() and prune(integer) externally, or use the optional C worker: preload pgslot, restart, and set pgslot.database and an explicit login pgslot.role in the collector group. That worker covers one database; upstream reports testing on PostgreSQL 15. CLI/TUI programs are optional companions.