Re: Revoke Connect Privilege from Database not working - Mailing list pgsql-bugs

From Nathan Bossart
Subject Re: Revoke Connect Privilege from Database not working
Date
Msg-id aXDwtbXCu42Fdmrn@nathan
Whole thread Raw
In response to Re: Revoke Connect Privilege from Database not working  (Tom Lane <tgl@sss.pgh.pa.us>)
Responses Re: Revoke Connect Privilege from Database not working
List pgsql-bugs
On Tue, Jan 20, 2026 at 06:05:41PM -0500, Tom Lane wrote:
> Motivated by the discussion at [1], I'd started on the same idea,
> but arrived at a rather different refactorization.  I think this
> way is nicer (less duplicated logic).  Either way, we need to
> address the docs and probably add more regression tests.

Yeah, I think doing most of the work in select_best_grantor() is obviously
better.  I recall wondering whether we should check for INHERIT or SET
privilege (or both) on the grantor role, and IIRC I settled on INHERIT
because select_best_grantor() searches through roles we have INHERIT on.

Would you like to handle docs/tests/committing, or shall I?

-- 
nathan



pgsql-bugs by date:

Previous
From: Amit Langote
Date:
Subject: Re: BUG #19099: Conditional DELETE from partitioned table with non-updatable partition raises internal error
Next
From: Andrei Lepikhov
Date:
Subject: Re: BUG #19385: Normal SELECT generates an ineffecifient query plan compare to the prepared SELECT.