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

From David G. Johnston
Subject Re: Re: Revoke Connect Privilege from Database not working
Date
Msg-id CAKFQuwa7m2smqqpgPetw=i8Aj-xqg9Zjc5Z2aX3AUwNh96WnXw@mail.gmail.com
Whole thread Raw
In response to Revoke Connect Privilege from Database not working  ("Ing. Marijo Kristo" <marijo.kristo@icloud.com>)
Responses Aw:  Re: Re: Revoke Connect Privilege from Database not working
List pgsql-sql
On Monday, April 7, 2025, Ing. Marijo Kristo <marijo.kristo@icloud.com> wrote:

Seems like a bug to me.
Can someone else verifiy this ?

It would help greatly if you create a reproducer that starts from a clean install, creates the roles and database, and demonstrates the issue.


postgres=# \du vault_admin;
            List of roles
  Role name  |       Attributes
-------------+------------------------
vault_admin | Superuser, Create role

postgres=# set role vault_admin;

You are setting role to another role that has superuser which is basically pointless.

Use “granted by” in your revoke command.  If that works this isn’t a bug.

David J.

pgsql-sql by date:

Previous
From: "Ing. Marijo Kristo"
Date:
Subject: Aw:  Re: Revoke Connect Privilege from Database not working
Next
From: "Ing. Marijo Kristo"
Date:
Subject: Aw:  Re: Re: Revoke Connect Privilege from Database not working