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

nbari / pg_exporter / 45645995820
91%
main: 91%

Build:
Build:
LAST BUILD BRANCH: develop
DEFAULT BRANCH: main
Ran 25 Nov 2026 03:36PM UTC
Jobs 1
Files 135
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 Nov 2026 02:55PM UTC coverage: 90.385% (+0.1%) from 90.236%
45645995820

push

github

nbari
Report the PostgreSQL version as major.minor in pg_version_info

The short_version label was padded to three parts, so a 18.6 server showed
as 18.6.0 in the dashboard's Version panel. PostgreSQL has not used a
three-part version since release 10, and the exporter supports 14 and later.

The label is now built from server_version_num, which the collector already
reads and which carries no packaging suffix or pre-release name. That removes
the second SELECT version() per scrape and the two regexes that parsed it, so
regex becomes a development dependency.

The Version panel also trims the old padding with label_replace, so the
dashboard shows 18.6 against an exporter older than this change as well.

Closes #42

117 of 120 new or added lines in 3 files covered. (97.5%)

5 existing lines in 3 files now uncovered.

22523 of 24919 relevant lines covered (90.38%)

638.34 hits per line

Uncovered Changes

Lines Coverage ∆ File
3
98.19
-1.81% tests/collectors/default/version.rs

Coverage Regressions

Lines Coverage ∆ File
2
83.1
-0.35% tests/collectors/replication/replica_topology.rs
2
93.94
-2.02% tests/telemetry.rs
1
94.34
0.0% src/collectors/statements/pg_statements.rs
Jobs
ID Job ID Ran Files Coverage
1 45645995820.1 25 Nov 2026 03:36PM UTC 135
90.38
GitHub Action Run
Source Files on build 45645995820
  • Tree
  • List 135
  • Changed 11
  • Source Changed 3
  • Coverage Changed 11
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Github Actions Build #45645995820
  • 76ce6721 on github
  • Prev Build on sandbox (#45613724004)
  • Next Build on develop (#45658538015)
  • Delete
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE TRIAL · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc