Re: Why is_admin_of_role() use ROLERECURSE_MEMBERS rather thanROLERECURSE_PRIVS? - Mailing list pgsql-hackers

From preTham
Subject Re: Why is_admin_of_role() use ROLERECURSE_MEMBERS rather thanROLERECURSE_PRIVS?
Date
Msg-id CAJUn_kMBrU==ajPWz+3tw6YtxfCQryXZePdANcL+OJFSM0K9Dw@mail.gmail.com
Whole thread Raw
In response to Re: Why is_admin_of_role() use ROLERECURSE_MEMBERS rather thanROLERECURSE_PRIVS?  ("cca5507" <cca5507@qq.com>)
List pgsql-hackers
Hi,
the "permission denied" error does make sense from a user perspective as it details that.only roles with admin option for u2 can grant it. the patch also LGTM.

Regards,
Pretham

On Tue, Dec 23, 2025 at 11:52 AM cca5507 <cca5507@qq.com> wrote:
Hi,

Update some comments in v3.

(CC Pretham, we discuss it in [1])

[1]: https://www.postgresql.org/message-id/flat/CAJUn_kN%2BMhbb8fYP5xxQCq1KEziOinM6HgYx4ts_pPDnQ2y1nQ%40mail.gmail.com

--
Regards,
ChangAo Chen

pgsql-hackers by date:

Previous
From: Chao Li
Date:
Subject: Re: Improve documentation of publication privilege checks
Next
From: "David G. Johnston"
Date:
Subject: Re: Improve documentation of publication privilege checks