[PATCH] remove is_member_of_role() from header, add can_set_role() - Mailing list pgsql-hackers

From Joshua Brindle
Subject [PATCH] remove is_member_of_role() from header, add can_set_role()
Date
Msg-id CAGB+Vh4enxvLBM_BJweWEO12Q0ySLMBWK9iOLaM7e=V1Y0YadA@mail.gmail.com
Whole thread Raw
Responses Re: [PATCH] remove is_member_of_role() from header, add can_set_role()
List pgsql-hackers
As a follow-on to Conflation of member/privs for predefined roles,
this removes is_member_of_role from the header to dissuade it's use
for privilege checking. Since SET ROLE must use membership rather than
privileges a new, explicitly named can_set_role() function is
exported.

is_member_of_role_nosuper() still exists for the following purposes:
- membership loop checking in user.c
- membership matching for pg_hba.conf in hba.c

Other uses of is_member_of_role_nosuper() should be avoided.

Attachment

pgsql-hackers by date:

Previous
From: Bharath Rupireddy
Date:
Subject: Isn't it better with "autovacuum worker...." instead of "worker took too long to start; canceled" specific to "auto
Next
From: Jacob Champion
Date:
Subject: Re: allowing "map" for password auth methods with clientcert=verify-full