Re: [HACKERS] Row Level Security Bug ?

From: Joe Conway <mail(at)joeconway(dot)com>
To: Andrea Adami <fol(at)fulcro(dot)net>, pgsql-hackers(at)postgresql(dot)org
Subject: Re: [HACKERS] Row Level Security Bug ?
Date: 2017-11-14 17:53:23
Message-ID: a63ef27f-1913-5116-f556-979e67a75f18@joeconway.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: 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

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message Daniel Verite 2017-11-14 17:56:23 Re: [HACKERS] SQL procedures
Previous Message Alvaro Herrera 2017-11-14 17:49:46 Re: [HACKERS] Proposal: Local indexes for partitioned table