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

nbari / pg_exporter / 46036486042
91%
main: 91%

Build:
Build:
LAST BUILD BRANCH: develop
DEFAULT BRANCH: main
Ran 27 Nov 2026 04:54PM UTC
Jobs 1
Files 138
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

27 Nov 2026 04:37PM UTC coverage: 90.561% (-0.02%) from 90.576%
46036486042

push

github

nbari
Filter top-level statements in the query itself, without a probe

Whether to filter pg_stat_statements on toplevel was decided by a catalog
probe, and every form of that probe could disagree with the call it
described. The previous commit probed pg_proc: a monitoring role allowed
to call the function but not to read pg_proc then got HTTP 503 where
0.22.3 scraped it. An unresolvable function answered "no column" without
caching, so an extension made visible between the probe and the read was
scraped once without the filter.

The scrape query now joins the function's rows NATURALly with a one-row
relation whose only column is toplevel = true. Where the function returns
toplevel this keeps exactly the top-level rows; on 1.8 there is no common
column and every row is kept. The decision is made by the columns of the
same call, in the same statement, so the probe, its cache, the extension
version carried on every row and the re-read on a version change are all
gone. The only probe left is pg_stat_activity.query_id, which is a server
property.

Test: a pg_monitor role in a database where pg_proc, pg_attribute and
pg_extension (except extname) are not readable gets statements with the
nested-only one filtered out. It fails on the previous code with "could
not probe the columns of pg_stat_statements(boolean)". The renamed-view,
shadowing-view and extension version-change tests pass unchanged.

89 of 95 new or added lines in 2 files covered. (93.68%)

13 existing lines in 5 files now uncovered.

23525 of 25977 relevant lines covered (90.56%)

1165.17 hits per line

Uncovered Changes

Lines Coverage ∆ File
5
92.97
-0.04% tests/collectors/statements/pg_statements.rs
1
94.11
0.48% src/collectors/statements/pg_statements.rs

Coverage Regressions

Lines Coverage ∆ File
4
97.15
-0.39% tests/collectors/stat/user_tables.rs
3
86.32
-3.16% src/collectors/activity/wait.rs
3
94.11
0.48% src/collectors/statements/pg_statements.rs
2
83.16
-0.35% tests/collectors/replication/replica_topology.rs
1
94.19
0.7% src/collectors/activity/connections.rs
Jobs
ID Job ID Ran Files Coverage
1 46036486042.1 27 Nov 2026 04:54PM UTC 138
90.56
GitHub Action Run
Source Files on build 46036486042
  • Tree
  • List 138
  • Changed 6
  • Source Changed 2
  • Coverage Changed 6
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Github Actions Build #46036486042
  • 483b47bb on github
  • Prev Build on sandbox (#45984606890)
  • Next Build on sandbox (#46037451808)
  • 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