Re: [HACKERS] Row Level Security Bug ? - Mailing list pgsql-hackers

From Joe Conway
Subject Re: [HACKERS] Row Level Security Bug ?
Date
Msg-id a63ef27f-1913-5116-f556-979e67a75f18@joeconway.com
Whole thread Raw
In response to Re: [HACKERS] Row Level Security Bug ?  (Andrea Adami <fol@fulcro.net>)
List pgsql-hackers
On 11/13/2017 09:09 PM, Andrea Adami wrote:
> As suggested from Joe i changed the db definition as enclosed.
> Now when i do:
>
> select * fom schools 
>
> all works fine 
>
> but when i do:

[SELECT from VIEW]

> always i get the error: 
>
> permission denied for relation schools
> SQL state: 42501
>
> Someone has some suggestion ?

Offhand I would say you probably need to GRANT ALL (or SELECT or
whatever needed) to the VIEW owner.

Joe

--
Crunchy Data - http://crunchydata.com
PostgreSQL Support for Secure Enterprises
Consulting, Training, & Open Source Development


Attachment

pgsql-hackers by date:

Previous
From: Alvaro Herrera
Date:
Subject: Re: [HACKERS] Proposal: Local indexes for partitioned table
Next
From: "Daniel Verite"
Date:
Subject: Re: [HACKERS] SQL procedures