"David G. Johnston" <david.g.johnston@gmail.com> writes:
> This seems quite misplaced on the -performance mailing list.
Indeed.
> On Sat, Apr 11, 2026 at 10:55 AM ikramuddin <ikram.amani815@gmail.com>
> wrote:
>> plz guide it is a bug or this behavious left intentionally.
> Intentional, every object has its own permissions that are granted to roles
> independently of others.
Also, "REVOKE CONNECT ON DATABASE finance FROM simon" is probably a
no-op, because nobody ever did "GRANT CONNECT ON DATABASE finance TO
simon". Rather, the reason simon can connect is that there's a
default "GRANT CONNECT ... TO public". If you want to restrict
CONNECT privileges, you have to revoke that and then hand out
the privilege selectively to users that should have it.
regards, tom lane