Repository navigation
PostgreSQL: Parse GRANT of role membership - #2732
Merged
Merged
Conversation
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #2732 +/- ##
==========================================
+ Coverage 82.34% 82.37% +0.02%
==========================================
Files 42 42
Lines 35263 35313 +50
Branches 35263 35313 +50
==========================================
+ Hits 29039 29089 +50
- Misses 2677 2678 +1
+ Partials 3547 3546 -1 ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
sabir-akhadov-localstack
approved these changes
Oct 28, 2026
LucaCappelletti94
force-pushed
the
upstream/postgres-grant-role-membership
branch
from
October 28, 2026 07:28
1be973d to
e3845d7
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
GRANT bypasser TO anonfailed withExpected: a privilege keyword, found: bypasserin every dialect, sinceGRANTonly knew the privilege form. PostgreSQL grants membership in a role by naming the role without a keyword (GRANT).The statement now parses into a new
Statement::GrantRole, as the membership form shares neither the objects norWITH GRANT OPTIONwithGrant. The privilege form is still tried first, and the role form takes over only when it fails on a role list followed byTO, so existing statements and their errors are unchanged. TheWITHoptions and the matchingREVOKEfollow in separate PRs.