Re: Baffled by basic permission issue.
От | Holger Jakobs |
---|---|
Тема | Re: Baffled by basic permission issue. |
Дата | |
Msg-id | 3AD88617-B7E7-4AF5-AE0B-05A79F88C2CC@jakobs.com обсуждение исходный текст |
Ответ на | Baffled by basic permission issue. (Wells Oliver <wells.oliver@gmail.com>) |
Ответы |
Re: Baffled by basic permission issue.
|
Список | pgsql-admin |
If you want to use a view, you need the permissions for it. Not for the underlying tables
--
Holger Jakobs, Bergisch Gladbach
+49 178 9759012
- sent from mobile, therefore short -
Am 16. Juni 2021 22:56:17 MESZ schrieb Wells Oliver <wells.oliver@gmail.com>:
I have a view that does this:create view stats.vAnd when I do: SELECT * FROM stats.v I receive: ERROR: permission denied for table iHowever, if I paste the contents of the view as a query and run it manually, it works fine.I can also query alias.i as I please.The role I am using to connect has USAGE on both stats and alias, it also has SELECT on the table as well as the view.The only difference is that the view is owned by a different user than the tables, though the SELECT permissions are definitely granted.psql 13.2
--
Holger Jakobs, Bergisch Gladbach
+49 178 9759012
- sent from mobile, therefore short -
В списке pgsql-admin по дате отправления: