Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1VHELU-0003pP-CK for pgsql-hackers@arkaria.postgresql.org; Wed, 04 Sep 2013 14:46:12 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.80) (envelope-from ) id 1VHELT-0007b1-Qq for pgsql-hackers@arkaria.postgresql.org; Wed, 04 Sep 2013 14:46:11 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1VHELR-0007aq-KJ for pgsql-hackers@postgresql.org; Wed, 04 Sep 2013 14:46:09 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by magus.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1VHELO-0003wg-RN for pgsql-hackers@postgresql.org; Wed, 04 Sep 2013 14:46:09 +0000 Received: from sss1.sss.pgh.pa.us (localhost [127.0.0.1]) by sss.pgh.pa.us (8.14.4/8.14.4) with ESMTP id r84EjuaM001399; Wed, 4 Sep 2013 10:45:56 -0400 From: Tom Lane To: Robert Haas cc: Stephen Frost , Josh Berkus , Kohei KaiGai , "ktm@rice.edu" , Alexander Korotkov , Oleg Bartunov , Greg Smith , PgHacker Subject: Re: [v9.4] row level security In-reply-to: References: <20130829142321.GA30496@aart.rice.edu> <521F7DFB.8060602@agliodbs.com> <5220D832.7090104@agliodbs.com> <20130830192729.GO2706@tamriel.snowman.net> <16798.1377891794@sss.pgh.pa.us> Comments: In-reply-to Robert Haas message dated "Wed, 04 Sep 2013 10:35:05 -0400" Date: Wed, 04 Sep 2013 10:45:56 -0400 Message-ID: <1398.1378305956@sss.pgh.pa.us> X-Pg-Spam-Score: -4.3 (----) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-hackers Precedence: bulk Sender: pgsql-hackers-owner@postgresql.org Robert Haas writes: > On Fri, Aug 30, 2013 at 3:43 PM, Tom Lane wrote: >> I think it's entirely sensible to question whether we should reject (not >> "hold up") RLS if it has major covert-channel problems. > We've already had this argument before, about the security_barrier > view stuff, and that code got committed and is already released. So > the horse is already out of the barn and no amount of wishing will put > it back in. Well, the security-barrier view stuff did not present itself as a 100% solution. But perhaps more to the point, it was conceptually simple to implement, ie don't flatten views if they have this bit set, and don't push down quals into such sub-selects unless they're marked leakproof. > I haven't reviewed this patch in a long time, but I would > expect that it's basically just reusing that same infrastructure; in > fact, I'd expect that it's little more than syntactic sugar around > that infrastructure. I've not read it in great detail, but it isn't that. It's whacking the planner around in ways that I have no confidence in, and probably still wouldn't have any confidence in if they'd been adequately documented. regards, tom lane -- Sent via pgsql-hackers mailing list (pgsql-hackers@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-hackers