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

golang-migrate / migrate / 34422391442
55%
master: 55%

Build:
Build:
LAST BUILD BRANCH: resync-upstream-v4.20.1
DEFAULT BRANCH: master
Ran 10 Sep 2026 01:00AM 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

10 Sep 2026 12:41AM UTC coverage: 55.02%. First build
34422391442

Pull #1426

github

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

A follow-up review of this branch 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%)

4455 of 8097 relevant lines covered (55.02%)

13654.96 hits per line

Uncovered Changes

Lines Coverage ∆ File
10
70.59
database/postgres/postgres.go
Jobs
ID Job ID Ran Files Coverage
1 Go-1.25.x - 34422391442.1 10 Sep 2026 01:00AM UTC 59
55.02
GitHub Action Run
2 Go-1.26.x - 34422391442.2 10 Sep 2026 01:01AM UTC 59
55.02
GitHub Action Run
Source Files on build 34422391442
  • Tree
  • List 59
  • Changed 0
  • Source Changed 0
  • Coverage Changed 0
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Pull Request #1426
  • PR Base - master (#34312963896)
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