Re: Grant SELECT/Execute to View/Function but not underlying Table

Поиск
Список
Период
Сортировка
От David G. Johnston
Тема Re: Grant SELECT/Execute to View/Function but not underlying Table
Дата
Msg-id CAKFQuwZanP5qgV7ZLpCs_yLggoNbCWqhsRyXVA443x=OynF26A@mail.gmail.com
обсуждение исходный текст
Ответ на Re: Grant SELECT/Execute to View/Function but not underlying Table  (Maxim Boguk <maxim.boguk@gmail.com>)
Список pgsql-general


On Thursday, September 24, 2015, Maxim Boguk <maxim.boguk@gmail.com> wrote:


On Thu, Sep 24, 2015 at 9:28 PM, Alex Magnum <magnum11200@gmail.com> wrote:
Hi,
is it possible to grant select to views and functions without the need to also grant the user the SELECT privileges to the Tables used in the views or functions?

That way I could create read only users on a website and limit their access to the bare minimum.

 
for view no it isn't possible (view is query text stored in database for future use and nothing more).


This is not how views are stored nor how they work.  The are implemented as rules and thus the following section of the documentation applies.


David J.

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

Предыдущее
От: Thom Brown
Дата:
Сообщение: Re: Grant SELECT/Execute to View/Function but not underlying Table
Следующее
От: Melvin Davidson
Дата:
Сообщение: Re: Convert number to string