You signed in with another tab or window.Reload to refresh your session.You signed out in another tab or window.Reload to refresh your session.You switched accounts on another tab or window.Reload to refresh your session.Dismiss alert
Use has_privs_for_roles for predefined role checks
Generally if a role is granted membership to another role with NOINHERITthey must use SET ROLE to access the privileges of that role, howeverwith predefined roles the membership and privilege is conflated. Fix thatby replacing is_member_of_role with has_privs_for_role for predefinedroles. Patch does not remove is_member_of_role from acl.h, but it doesadd a warning not to use that function for privilege checking. Notbackpatched based on hackers list discussion.Author: Joshua BrindleReviewed-by: Stephen Frost, Nathan Bossart, Joe ConwayDiscussion:https://postgr.es/m/flat/CAGB+Vh4Zv_TvKt2tv3QNS6tUM_F_9icmuj0zjywwcgVi4PAhFA@mail.gmail.com