Re: permission denied (even when run as postgres) for views aftermaking their owner nosuperuser
В списке pgsql-admin по дате отправления:
| От | Achilleas Mantzios |
|---|---|
| Тема | Re: permission denied (even when run as postgres) for views aftermaking their owner nosuperuser |
| Дата | |
| Msg-id | 3b4e1884-e2df-0152-e258-8adb984a2252@matrix.gatewaynet.com обсуждение |
| Ответ на | Re: permission denied (even when run as postgres) for views aftermaking their owner nosuperuser ("David G. Johnston" <david.g.johnston@gmail.com>) |
| Список | pgsql-admin |
In fact, there is no way on earth I can regain access to view fuser.testforfu for any user (postgres included) unless I change its ownership (or make fuser a superuser).
is this normal? documented? Am I missing anything?When dealing with views the owner of the view is performing all of the queries. So if you make the view owner lack permission to access the underlying tables the view isn't going to work no matter the permissions of the view caller.
Documented here:"Access to tables referenced in the view is determined by permissions of the view owner."David J.
-- Achilleas Mantzios IT DEV Lead IT DEPT Dynacom Tankers Mgmt
В списке pgsql-admin по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера