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

babelfish-for-postgresql / babelfish_extensions / 17849196517
77%

Build:
DEFAULT BRANCH: BABEL_5_X_DEV
Ran 19 Sep 2025 05:52AM UTC
Jobs 1
Files 121
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

19 Sep 2025 05:15AM UTC coverage: 76.499% (+0.03%) from 76.473%
17849196517

push

github

web-flow
Support Same-DB Ownership Chaining for object references inside Procedure/Functions (#4057)

This commit implements the ownership chaining support for object
references inside function/procedure. The basic idea of Ownership chaining is that when
one object references another, and both have the same owner, then permissions
are only checked when the top-level object is accessed.

Core Functionality:
Added support for ownership chaining within the same database for procedures and functions

Key Components Modified:

    Added ownership chain validation in permission checks
    Walker function to mark relations and functions inside view definitions

Implementation:

Walker function to mark relations and functions inside view definitions

Walks through the query parse tree to:

    Mark relations and functions as being inside a view context
    For relations:
        Set checkAsUser to the view_owner when it matches the relation's owner,
        enabling permission checking to pass at the executor stage (ownership chaining)
    For procedures/functions:
        Store the view_owner in the parentOwnerId field to support
        procedure/function-specific ownership chaining logic
        during permission checks at the executor stage

Task: BABEL-6030
Engine PR: https://github.com/babelfish-for-postgresql/postgresql_modified_for_babelfish/pull/616

Signed-off-by: Harsh Lunagariya <lunharsh@amazon.com>
Co-authored-by: pranav jain <pranav23iitd@gmail.com>

77 of 79 new or added lines in 4 files covered. (97.47%)

51158 of 66874 relevant lines covered (76.5%)

382631.55 hits per line

New Missed Lines in Diff

Lines Coverage ∆ File
1
85.97
0.05% contrib/babelfishpg_tsql/src/hooks.c
1
92.34
0.15% contrib/babelfishpg_tsql/src/pltsql_utils.c
Jobs
ID Job ID Ran Files Coverage
1 17849196517.1 19 Sep 2025 05:52AM UTC 121
76.5
GitHub Action Run
Source Files on build 17849196517
  • Tree
  • List 121
  • Changed 4
  • Source Changed 4
  • Coverage Changed 4
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Github Actions Build #17849196517
  • 70b2a3a6 on github
  • Prev Build on BABEL_5_X_DEV (#17848039869)
  • Next Build on BABEL_5_X_DEV (#17849627880)
  • 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