Re: Baffled by basic permission issue. - Mailing list pgsql-admin

From Tom Lane
Subject Re: Baffled by basic permission issue.
Date
Msg-id 805163.1623878495@sss.pgh.pa.us
Whole thread Raw
In response to Re: Baffled by basic permission issue.  (Wells Oliver <wells.oliver@gmail.com>)
Responses Re: Baffled by basic permission issue.
List pgsql-admin
Wells Oliver <wells.oliver@gmail.com> writes:
> The role has SELECT perm on the view and on the underlying tables and I am
> received a permission denied table on the table while trying to select from
> the view. The view is owned by a different user but SELECT perms are very
> clearly granted to my role.

When you select from a view, you need permissions only on the view.
The view's owner needs permissions on the underlying table(s).
This is so that views can act as permission gateways.

            regards, tom lane



pgsql-admin by date:

Previous
From: Wells Oliver
Date:
Subject: Re: Baffled by basic permission issue.
Next
From: Ni Ne
Date:
Subject: Assistance setting up LDAPS authentication for pgadmin4