Re: REVOKE FROM warning on grantor

Поиск
Список
Период
Сортировка
От Peter Eisentraut
Тема Re: REVOKE FROM warning on grantor
Дата
Msg-id cf37c291-1998-4fc1-9fe7-a5c61ae7401c@eisentraut.org
обсуждение исходный текст
Ответ на Re: REVOKE FROM warning on grantor  (Tom Lane <tgl@sss.pgh.pa.us>)
Список pgsql-hackers
On 18.03.24 22:30, Tom Lane wrote:
> regression=# revoke foo from joe;
> WARNING:  role "joe" has not been granted membership in role "foo" by role "postgres"
> REVOKE ROLE
> 
> What the OP is on about is that that last case issues WARNING not
> ERROR.

Another point is that granting a role that has already been granted is 
not an error.  So it makes some sense that revoking a role that has not 
been granted is also not an error.  Both of these operations are 
idempotent in the same way.




В списке pgsql-hackers по дате отправления:

Предыдущее
От: Alexander Korotkov
Дата:
Сообщение: Re: [HACKERS] make async slave to wait for lsn to be replayed
Следующее
От: Michael Banck
Дата:
Сообщение: Re: Possibility to disable `ALTER SYSTEM`