Re: Role membership and DROP

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: Role membership and DROP
Дата
Msg-id 6808.1573683426@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Role membership and DROP  (Laurenz Albe <laurenz.albe@cybertec.at>)
Ответы Re: Role membership and DROP  (Laurenz Albe <laurenz.albe@cybertec.at>)
Re: Role membership and DROP  (Laurenz Albe <laurenz.albe@cybertec.at>)
Список pgsql-hackers
Laurenz Albe <laurenz.albe@cybertec.at> writes:
> I realized only today that if role A is a member of role B,
> A can ALTER and DROP objects owned by B.
> I don't have a problem with that, but the documentation seems to
> suggest otherwise.  For example, for DROP TABLE:

>    Only the table owner, the schema owner, and superuser can drop a table.

Generally, if you are a member of a role, that means you are the role for
privilege-test purposes.  I'm not on board with adding "(or a member of
that role)" to every place it could conceivably be added; I think that
would be more annoying than helpful.

It might be worth clarifying this point in section 5.7,

https://www.postgresql.org/docs/devel/ddl-priv.html

but let's not duplicate that in every ref/ page.

            regards, tom lane



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

Предыдущее
От: Alvaro Herrera
Дата:
Сообщение: Re: Creating foreign key on partitioned table is too slow
Следующее
От: "Li, Zheng"
Дата:
Сообщение: Re: NOT IN subquery optimization