Обсуждение: Views and Privileges

Поиск
Список
Период
Сортировка

Views and Privileges

От
Matthew Woodcraft
Дата:
The fact that views run with the privileges of the view owner is a bit
hidden in the documentation.

It isn't mentioned in /3.2 Views/, which makes sense as privileges
haven't been introduced yet.

It is explained in /37.4 Rules and Privileges/, but I think most people
using views won't have reason to read the docs on rules.

I can't find any other reference to it.

How about having a section under /20. Database Roles and Privileges/ on
views and privileges?

-M-

Re: Views and Privileges

От
Robert Haas
Дата:
On Sat, Jun 26, 2010 at 6:11 AM, Matthew Woodcraft
<matthew@woodcraft.me.uk> wrote:
> The fact that views run with the privileges of the view owner is a bit
> hidden in the documentation.
>
> It isn't mentioned in /3.2 Views/, which makes sense as privileges
> haven't been introduced yet.
>
> It is explained in /37.4 Rules and Privileges/, but I think most people
> using views won't have reason to read the docs on rules.
>
> I can't find any other reference to it.
>
> How about having a section under /20. Database Roles and Privileges/ on
> views and privileges?

I don't see an obvious way to fit it in there, although it doesn't
seem like a bad idea.  I also wonder if we should mention something in
the reference pages for GRANT and REVOKE - at least a cross-reference
to the correct section of the documentation.

--
Robert Haas
EnterpriseDB: http://www.enterprisedb.com
The Enterprise Postgres Company