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

babelfish-for-postgresql / babelfish_extensions / 17438285956 / 1
77%
BABEL_5_X_DEV: 77%

Build:
DEFAULT BRANCH: BABEL_5_X_DEV
Ran 03 Sep 2025 04:12PM UTC
Files 120
Run time 7s
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

03 Sep 2025 03:26PM UTC coverage: 76.252% (+0.01%) from 76.242%
17438285956.1

push

github

web-flow
Fix permission checks for views in Planner phase for cross-db cases (#4050)

Introduced the permission checks on view in the planner phase. In
Babelfish there is permission specific logic which is implemented in
executor_hook to support the query on cross-db views. While implementing
cross-db view query support, We assumed that permission checks always
happens at executor. After mentioned community changes that assumption
got brocken and cross-db view queries throwing errors of insufficient
privileges.

This commit fixes above issue by adding same logic for supporting
cross-db view query to pre-planning phase using pltsql_planner_hook. It
is basically walking through whole query tree and inserts checkAsUser
field for all the view RTE, so that permission check on views always
happens on TSQL login to support cross-db usecases.

Issues Resolved: BABEL-6035
Signed-off-by: Harsh Lunagariya <lunharsh@amazon.com>

50230 of 65874 relevant lines covered (76.25%)

380882.57 hits per line

Source Files on job 17438285956.1
  • Tree
  • List 120
  • Changed 1
  • Source Changed 1
  • Coverage Changed 1
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Build 17438285956
  • 5da7ec50 on github
  • Prev Job for on BABEL_5_X_DEV (#17426547600.1)
  • Next Job for on BABEL_5_X_DEV (#17476797058.1)
  • 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