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

golang-migrate / migrate / 32323722585
54%
master: 55%

Build:
Build:
LAST BUILD BRANCH: fix/golangci-lint-latest
DEFAULT BRANCH: master
Ran 20 Aug 2026 02:30AM UTC
Jobs 2
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

20 Aug 2026 02:10AM UTC coverage: 54.497% (+0.09%) from 54.412%
32323722585

Pull #1426

github

xhon-pelushi
postgres: exclude extension-owned and internally-dependent types from Drop()

A second Claude Code session independently verifying this PR found two real
regressions in the type-selection query added in the previous commit:

- Any type an extension installs into the current schema (citext, hstore,
  postgis, ...) was selected and DROP TYPE fails on it -- only dropping the
  extension can remove it. Drop() would return that error and abort with
  the tables already gone.

- A range type's auto-generated multirange type has an internal dependency
  on its range type. If the multirange sorts before the range type in the
  (unordered) query result, its DROP fails immediately for the same reason,
  again aborting with tables already dropped. Reordering wouldn't fully fix
  this either -- it would just make the failure order-dependent.

Exclude anything with an extension ('e') or internal ('i') pg_depend entry.
Verified against a real Postgres 16 instance: citext extension + enum +
range type (which also exercises its implicit multirange) + a table, in
combination. Before this commit, Drop() failed outright. After, it succeeds
and drops everything droppable, leaving only the extension-owned type,
which is correct since removing it means dropping the extension.

Adds testDropWithExtensionAndRangeTypes alongside the existing
testDropWithCustomTypes.
Pull Request #1426: postgres: Drop() also drops custom types

27 of 37 new or added lines in 1 file covered. (72.97%)

4405 of 8083 relevant lines covered (54.5%)

50.06 hits per line

Uncovered Changes

Lines Coverage ∆ File
10
70.59
0.28% database/postgres/postgres.go
Jobs
ID Job ID Ran Files Coverage
1 Go-1.25.x - 32323722585.1 20 Aug 2026 02:30AM UTC 59
54.5
GitHub Action Run
2 Go-1.26.x - 32323722585.2 20 Aug 2026 02:33AM UTC 59
54.5
GitHub Action Run
Source Files on build 32323722585
  • Tree
  • List 59
  • Changed 1
  • Source Changed 0
  • Coverage Changed 1
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Pull Request #1426
  • PR Base - master (#28747999081)
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