Commit 3bc9401
committed
feat(0): add WAL and replication slot info to node report
Add two new rows to report 0:
- WAL: current LSN, number of WAL files, total WAL size
(shows 'N/A (replica)' on standbys)
- Replication Slots: name, type (physical/logical), status
(active/inactive), and lag from current WAL position
Uses pg_ls_waldir() (requires pg_monitor or superuser) and
pg_replication_slots catalog.
Closes #241 parent 350ca05 commit 3bc9401
1 file changed
Lines changed: 37 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
45 | 45 | | |
46 | 46 | | |
47 | 47 | | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
48 | 85 | | |
49 | 86 | | |
50 | 87 | | |
| |||
0 commit comments