Orphaned users in PG16 and above can only be managed by Superusers - Mailing list pgsql-hackers

From Ashutosh Sharma
Subject Orphaned users in PG16 and above can only be managed by Superusers
Date
Msg-id CAE9k0PmwJxFcajwnouQECsRWhtGSe0OeXP-BK=G+n1umjuqEBw@mail.gmail.com
Whole thread Raw
List pgsql-hackers
Hi All,

Starting from PG16, it seems that orphaned users can only be managed
by superusers. For example, if userA creates userB, and userB creates
userC, then both userB (the parent of userC) and userA (the
grandparent of userC) would typically have the ability to
manage/administer userC. However, if userB is dropped, userA (the
grandparent of userC) loses the ability to administer userC as well.
This leads to a situation where only superusers can manage userC.

Shouldn't userA retain the permission to manage userC even if userB is
removed? Otherwise, only superusers would have the authority to
administer userC (the orphaned user in this case), which may not be
feasible for cloud environments where superuser access is restricted.

--
With Regards,
Ashutosh Sharma.



pgsql-hackers by date:

Previous
From: "Zhijie Hou (Fujitsu)"
Date:
Subject: RE: Conflict detection for update_deleted in logical replication
Next
From: Amit Kapila
Date:
Subject: Re: Conflict detection for update_deleted in logical replication