Skip to content

Use has_privs_of_role instead of is_member_of_role in UserHasPermissionToViewStatsOf() #7923

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Draft
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

onurctirtir
Copy link
Member

As of postgres/postgres@6198420, the usage of is_member_of_role is replaced by has_privs_of_role for pg_stat_activity, pg_stat_statements and many others.

TODO: Need to better understand the implications of this change and need to add a few tests.

DESCRIPTION: PR description that will go into the change log, up to 78 characters

Copy link

codecov bot commented Mar 12, 2025

Codecov Report

Attention: Patch coverage is 0% with 1 line in your changes missing coverage. Please review.

Project coverage is 89.13%. Comparing base (ea7aa67) to head (bfd8098).
Report is 5 commits behind head on main.

❌ Your patch check has failed because the patch coverage (0.00%) is below the target coverage (75.00%). You can increase the patch coverage or adjust the target coverage.

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #7923      +/-   ##
==========================================
- Coverage   89.18%   89.13%   -0.05%     
==========================================
  Files         284      284              
  Lines       61344    63227    +1883     
  Branches     7682     8019     +337     
==========================================
+ Hits        54708    56360    +1652     
- Misses       4435     4626     +191     
- Partials     2201     2241      +40     
🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

…onToViewStatsOf

As of postgres/postgres@6198420,
the usage of is_member_of_role is replaced by has_privs_of_role for pg_stat_activity,
pg_stat_statements and many others.
@onurctirtir onurctirtir force-pushed the fix-priv-checks-for-stats branch from f01b808 to bfd8098 Compare April 30, 2025 07:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant