Re: REVOKE FROM warning on grantor

Поиск
Список
Период
Сортировка
От David G. Johnston
Тема Re: REVOKE FROM warning on grantor
Дата
Msg-id CAKFQuwZ4F126-Q8LkAocJuhuPSEBX8kA8wNctnkfP5DvcUz5eg@mail.gmail.com
обсуждение исходный текст
Ответ на REVOKE FROM warning on grantor  (Étienne BERSAC <etienne.bersac@dalibo.com>)
Ответы Re: REVOKE FROM warning on grantor  (Étienne BERSAC <etienne.bersac@dalibo.com>)
Список pgsql-hackers
On Thursday, March 14, 2024, Étienne BERSAC <etienne.bersac@dalibo.com> wrote:

However, I'd prefer if Postgres fails properly. Because the GRANT is
actually not revoked. This prevent ldap2pg to report an issue in
handling privileges on such roles.

What do you think of make this warning an error ?


The choice of warning is made because after the command ends the grantmin question does not exist.  The revoke was a no-op and the final state is as the user intended.  Historically doing this didn’t give any message at all which was confusing so we added a warning so the semantics of not failing were preserved but there was some indication that something was amiss.  I don’t have a compelling argument to,change the long-standing behavior.  Client code can and probably should look for a show errors reported by the backend.  It is indeed possibly to treat this warning more serverly than the server chooses to.

David J.
 

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

Предыдущее
От: Alvaro Herrera
Дата:
Сообщение: Re: Catalog domain not-null constraints
Следующее
От: Alvaro Herrera
Дата:
Сообщение: Re: MERGE ... RETURNING