Re: Raise a WARNING if a REVOKE affects nothing?

Поиск
Список
Период
Сортировка
От Noah Misch
Тема Re: Raise a WARNING if a REVOKE affects nothing?
Дата
Msg-id 20121002190131.GA12631@tornado.leadboat.com
обсуждение исходный текст
Ответ на Raise a WARNING if a REVOKE affects nothing?  (Craig Ringer <ringerc@ringerc.id.au>)
Ответы Re: Raise a WARNING if a REVOKE affects nothing?  ("David Johnston" <polobo@yahoo.com>)
Re: Raise a WARNING if a REVOKE affects nothing?  (Robert Haas <robertmhaas@gmail.com>)
Список pgsql-hackers
On Tue, Aug 21, 2012 at 02:31:29PM +0800, Craig Ringer wrote:
> It'd really help if REVOKE consistently raised warnings when it didn't  
> actually revoke anything.

+1

This will invite the same mixed feelings as the CREATE x IF NOT EXISTS
notices, but I think it's worthwhile.

> Even better, a special case for REVOKEs on objects that only have owner  
> and public permissions could say:
>
> WARNING: REVOKE didn't remove any permissions for user <blah>. This  
> <table/db/whatever>
> has default permissions, so there were no GRANTs for user <blah> to  
> revoke. See the documentation
> for REVOKE for more information.

The extra aid from saying those particular things is not clear to me.

It might be overkill, but we could report any other roles indirectly conveying
access to the named role.



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

Предыдущее
От: Peter Geoghegan
Дата:
Сообщение: Re: Hash id in pg_stat_statements
Следующее
От: Alvaro Herrera
Дата:
Сообщение: Re: CREATE SCHEMA IF NOT EXISTS