• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

nbari / pg_exporter / 18804971480
87%
main: 87%

Build:
Build:
LAST BUILD BRANCH: sandbox
DEFAULT BRANCH: main
Ran 25 Oct 2025 03:29PM UTC
Jobs 1
Files 59
Run time 1min
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

25 Oct 2025 03:26PM UTC coverage: 88.251% (-0.2%) from 88.489%
18804971480

push

github

nbari
feat: add PostgreSQL version compatibility for collectors

Added graceful handling for collectors that use PostgreSQL 17+ views
when running on older versions. The collectors now:

- Detect when required views don't exist (e.g., pg_stat_checkpointer)
- Log debug message and skip collection instead of failing
- Allow exporter to work on PostgreSQL 16, 17, and 18

Changes:
- checkpointer: requires PG 17+ (pg_stat_checkpointer introduced in 17)
- wal: requires PG 14+ (pg_stat_wal introduced in 14)
- archiver: works on all versions (pg_stat_archiver available since 9.4)
- Fixed flaky connection test by keeping active connection during test
- Re-added PostgreSQL 16 to test matrix

This ensures the exporter works on older PostgreSQL versions by
gracefully skipping collectors that depend on newer statistics views.

17 of 36 new or added lines in 4 files covered. (47.22%)

5566 of 6307 relevant lines covered (88.25%)

32.6 hits per line

New Missed Lines in Diff

Lines Coverage ∆ File
1
95.42
0.06% tests/collectors/activity/connections.rs
6
82.35
-7.65% src/collectors/default/archiver.rs
6
86.3
-7.54% src/collectors/default/checkpointer.rs
6
84.85
-8.25% src/collectors/default/wal.rs
Jobs
ID Job ID Ran Files Coverage
1 18804971480.1 25 Oct 2025 03:29PM UTC 59
88.25
GitHub Action Run
Source Files on build 18804971480
  • Tree
  • List 59
  • Changed 4
  • Source Changed 4
  • Coverage Changed 4
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Github Actions Build #18804971480
  • 63de9bf4 on github
  • Prev Build on develop (#18804908876)
  • Next Build on develop (#18805125146)
  • Delete
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc