pg.ddx.io  pgsql-general@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Stephen Frost <sfrost@snowman.net>
To: Dean Rasheed <dean.a.rasheed@gmail.com>
Cc: Alvaro Herrera <alvherre@2ndquadrant.com>
Cc: Ken Tanzer <ken.tanzer@gmail.com>
Cc: David G Johnston <david.g.johnston@gmail.com>
Cc: David Rowley <david.rowley@2ndquadrant.com>
Cc: PG-General Mailing List <pgsql-general@postgresql.org>
Subject: Re: Will there ever be support for Row Level Security on Materialized Views?
Date: Tue, 28 Aug 2018 08:26:56 -0400
Message-ID: <20180828122656.GE3326@tamriel.snowman.net> (raw)
In-Reply-To: <CAEZATCXYWO-TmGNsgdauLesr-EuR+3G3DincDAQ3hK03B2QFqg@mail.gmail.com>
References: <CAD3a31WCYe2dgSwKMKXV8PrnpHYT+ZioYQnETM0kmW4D9uaWQw@mail.gmail.com>
	<20180828004941.irsrxcvvmcblnjqh@alvherre.pgsql>
	<CAEZATCXYWO-TmGNsgdauLesr-EuR+3G3DincDAQ3hK03B2QFqg@mail.gmail.com>

Greetings,

* Dean Rasheed (dean.a.rasheed@gmail.com) wrote:
> On 28 August 2018 at 01:49, Alvaro Herrera <alvherre@2ndquadrant.com> wrote:
> > On 2018-Aug-27, Ken Tanzer wrote:
> >>    - In the scheme of things, is it a lot of work or not so much?
> >
> > Probably not much.
> 
> Yeah, it doesn't seem like it would be particularly difficult, but it
> would probably still be a reasonable amount of work to go round
> finding all the places in code that would need updating. I.e., I think
> it would be more mechanical work, than anything fundamentally
> challenging.
> 
> On the face of it, it seems like it might be a reasonable thing to
> support, but I wonder, is this really just syntactic sugar for
> creating a security barrier view on top of the materialized view?
> 
> When RLS was originally implemented, that same question was asked for
> tables, but the answer was "no" because RLS on a table gives you
> fine-grained (row-level) control over what data in the table can be
> modified as well as read, which a SB view doesn't give you. But for a
> MV view, that's not a consideration, so what would RLS on a MV
> actually give you?

I see value in being able to have a consistent set of policies which
are applied across tables, views, matviews, etc.  Also, with simple
updateable views, updates can be done, so there's also that to consider.
Ultimately, I do think it'd be good to have RLS support for views, mat
views, and foreign tables.

Thanks!

Stephen

Attachments:

  signature.asc (application/pgp-signature, 818B) download

view thread (12+ messages)  latest in thread

Message-ID: <20180828122656.GE3326@tamriel.snowman.net>
Permalink:  ../20180828122656.GE3326@tamriel.snowman.net/
Also on:    postgresql.org/message-id/20180828122656.GE3326@tamriel.snowman.net

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-general@postgresql.org
  Cc: sfrost@snowman.net, dean.a.rasheed@gmail.com, alvherre@2ndquadrant.com, ken.tanzer@gmail.com, david.g.johnston@gmail.com, david.rowley@2ndquadrant.com
  Subject: Re: Will there ever be support for Row Level Security on Materialized Views?
  In-Reply-To: <20180828122656.GE3326@tamriel.snowman.net>
  References: <CAD3a31WCYe2dgSwKMKXV8PrnpHYT+ZioYQnETM0kmW4D9uaWQw@mail.gmail.com> <20180828004941.irsrxcvvmcblnjqh@alvherre.pgsql> <CAEZATCXYWO-TmGNsgdauLesr-EuR+3G3DincDAQ3hK03B2QFqg@mail.gmail.com> <20180828122656.GE3326@tamriel.snowman.net>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox