Re: [ADMIN] Permissions not removed when group dropped

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: [ADMIN] Permissions not removed when group dropped
Дата
Msg-id 3358.1116193736@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: [ADMIN] Permissions not removed when group dropped  (Alvaro Herrera <alvherre@surnet.cl>)
Ответы Re: [ADMIN] Permissions not removed when group dropped  (Alvaro Herrera <alvherre@surnet.cl>)
Список pgsql-hackers
Alvaro Herrera <alvherre@surnet.cl> writes:
> Additionally we need to think what should happen if the user is the
> grantor of some privilege.  I think we should warn in RESTRICT mode, and
> in CASCADE, revoke the privilege from the grantee.

You mean "fail in RESTRICT mode", no?

> Hmm.  We could implement something like "DROP USER LOCALLY [CASCADE |
> RESTRICT]", which would be a very misleading name for operations 2-4
> above.  Additionally, if the user doesn't have references in other
> databases, drop the user itself.  (Note it's inconsistent.)

I'd go for something more like "DROP OWNED OBJECTS", which'd be just
the stuff internal to the current database (owned objects and ACL
entries).  You don't need to drop group memberships per-database.
        regards, tom lane


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

Предыдущее
От: Simon Riggs
Дата:
Сообщение: Re: Planned change of ExecRestrPos API
Следующее
От: Christopher Kings-Lynne
Дата:
Сообщение: Re: PostgreSQL running out of file handles