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

dal-go / dalgo2postgres / 37640321418
100%

Build:
DEFAULT BRANCH: main
Ran 07 Oct 2026 02:54PM UTC
Jobs 1
Files 19
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

07 Oct 2026 02:52PM UTC coverage: 98.735% (+0.02%) from 98.715%
37640321418

push

github

web-flow
fix: read PostgreSQL constraints from pg_catalog (#23)

Read-only PostgreSQL roles can inspect a table through `information_schema.columns` and `pg_catalog`, while `information_schema.table_constraints` may expose no primary keys. That makes `DescribeCollection` lose primary-key metadata and causes native readers to treat keyed relations as keyless.

This switches primary-key and constraint discovery to `pg_catalog`, preserving exact schema/table selection and composite-key ordinal order. The existing relation-visibility predicate also fences index and referrer metadata so ungranted same-named relations remain hidden.

Adds a live PostgreSQL regression using a non-owner SELECT-only role, composite primary/foreign keys, same-named relations across schemas, and checks that hidden relation constraints, indexes, and referrers are not disclosed.

Validation: `go test ./...`, `go vet ./...`, and `golangci-lint run ./...` pass locally. The live integration case is exercised by the PostgreSQL CI jobs.

Source commits:

- 6bb954ee289b fix: read PostgreSQL constraints from pg_catalog
- 8aea9f7e620e test: connect as restricted PostgreSQL role

Pull request: dal-go/dalgo2postgres#23
Review: /private/tmp/demodb-postgres-readonly-metadata-review-r2.md

51 of 51 new or added lines in 2 files covered. (100.0%)

1327 of 1344 relevant lines covered (98.74%)

1.0 hits per line

Jobs
ID Job ID Ran Files Coverage
1 37640321418.1 07 Oct 2026 02:54PM UTC 19
98.74
GitHub Action Run
Source Files on build 37640321418
  • Tree
  • List 19
  • Changed 2
  • Source Changed 0
  • Coverage Changed 2
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • c41f4e60 on github
  • Prev Build on main (#37633091999)
  • Next Build on main (#38553126959)
  • 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