Re: security via views

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: security via views
Дата
Msg-id 24260.1114622850@sss.pgh.pa.us
обсуждение исходный текст
Ответ на security via views  (Enrico Weigelt <weigelt@metux.de>)
Список pgsql-admin
Enrico Weigelt <weigelt@metux.de> writes:
> Most of the database access works over views and functions.
> For functions its possible to run them with separate privileges
> than the calling user. But is this also possible with views ?
> I've noticed that for views also GRANT is necessary (AFAIK a
> view is nothing else than a table with appropriate RULEs).

You have noticed incorrectly.  A view's references to other tables
are privilege-checked with respect to the owner of the view.

            regards, tom lane

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

Предыдущее
От: Scott Marlowe
Дата:
Сообщение: Re: Client Authentication problem
Следующее
От: Michael Fuhr
Дата:
Сообщение: Re: Client Authentication problem