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 CAKFQuwbPQo=3jM9PK6g1E=T31bWMc2t+V2Zax9bZcVmfSVv9ow@mail.gmail.com
обсуждение исходный текст
Ответ на Grant SELECT/Execute to View/Function but not underlying Table  (Alex Magnum <magnum11200@gmail.com>)
Список pgsql-general
On Thursday, September 24, 2015, 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.

Thanks in advance for any advise on this

Alex

Views work this way by default.  You can specify "security definer" to get similar behavior when you create a function.

David J.

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

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