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

babelfish-for-postgresql / babelfish_extensions / 16122560072
77%

Build:
DEFAULT BRANCH: BABEL_5_X_DEV
Ran 07 Jul 2025 04:54PM UTC
Jobs 1
Files 120
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 Jul 2025 04:30PM UTC coverage: 75.931% (+0.06%) from 75.874%
16122560072

push

github

web-flow
handle_dropdb() check has been moved to upper side of superuser check to prevent remove  Babelfish exclusive database directly by superuser. (#3888)

Previously, Babelfish-protected databases could be dropped by superusers using generic SQL clients (e.g., psql) without triggering the intended safeguards. This occurred because the logic to intercept and handle DROP DATABASE for Babelfish was placed after a superuser() check in tdsutils_ProcessUtility(). As a result, the handler handle_dropdb() was never reached for superusers.

This merge request reorders the logic so that the handle_dropdb() function is called before the superuser() check. This ensures that Babelfish databases are always validated and protected against direct deletion unless sys.remove_babelfish() has been explicitly called — even for superusers. This change enforces a consistent and safe behavior across all client types.

Issues Resolved
[#3875] Babelfish database can be dropped via SQL clients without proper cleanup, leading to reinitialization failure

Co-authored-by: Rohat Karataş <rohat.karatas@huawei-partners.com>

2 of 2 new or added lines in 1 file covered. (100.0%)

49562 of 65272 relevant lines covered (75.93%)

314976.21 hits per line

Jobs
ID Job ID Ran Files Coverage
1 16122560072.1 07 Jul 2025 04:54PM UTC 120
75.93
GitHub Action Run
Source Files on build 16122560072
  • Tree
  • List 120
  • Changed 2
  • Source Changed 1
  • Coverage Changed 2
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Github Actions Build #16122560072
  • c55054f0 on github
  • Prev Build on BABEL_5_X_DEV (#16109528009)
  • Next Build on BABEL_5_X_DEV (#16164695555)
  • Delete
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc