Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1ZKqtA-0002f8-VQ for pgsql-hackers@arkaria.postgresql.org; Thu, 30 Jul 2015 16:41:01 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84) (envelope-from ) id 1ZKqtA-0006yI-H7 for pgsql-hackers@arkaria.postgresql.org; Thu, 30 Jul 2015 16:41:00 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84) (envelope-from ) id 1ZKqt8-0006tF-6I for pgsql-hackers@postgresql.org; Thu, 30 Jul 2015 16:40:58 +0000 Received: from wsip-72-214-29-243.sd.sd.cox.net ([72.214.29.243] helo=joeconway.com) by magus.postgresql.org with esmtp (Exim 4.84) (envelope-from ) id 1ZKqt5-00053y-3e for pgsql-hackers@postgresql.org; Thu, 30 Jul 2015 16:40:57 +0000 Received: from [192.168.4.41] (account jconway@joeconway.com [192.168.4.41] verified) by joeconway.com (CommuniGate Pro SMTP 6.1.4) with ESMTPSA id 15413754; Thu, 30 Jul 2015 09:40:53 -0700 Message-ID: <55BA5395.2060409@joeconway.com> Date: Thu, 30 Jul 2015 09:40:53 -0700 From: Joe Conway User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Thunderbird/31.8.0 MIME-Version: 1.0 To: Dean Rasheed CC: Stephen Frost , Alvaro Herrera , PostgreSQL Hackers Subject: Re: [COMMITTERS] pgsql: Row-Level Security Policies (RLS) References: <20150522180807.GB5885@postgresql.org> <20150526130800.GA26667@tamriel.snowman.net> <20150526144406.GU5885@postgresql.org> <20150527014206.GF26667@tamriel.snowman.net> <20150527135154.GI26667@tamriel.snowman.net> <20150528075107.GS26667@tamriel.snowman.net> <55B9716E.5070602@joeconway.com> In-Reply-To: Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Pg-Spam-Score: -0.9 (/) 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 -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 On 07/30/2015 06:52 AM, Dean Rasheed wrote: > On 30 July 2015 at 01:35, Joe Conway wrote: >> On 06/01/2015 02:21 AM, Dean Rasheed wrote: >>> While going through this, I spotted another issue --- in a DML >>> query with additional non-target relations, such as UPDATE t1 >>> .. FROM t2 .., the old code was checking the UPDATE policies of >>> both t1 and t2, but really I think it ought to be checking the >>> SELECT policies of t2 (in the same way as this query requires >>> SELECT table permissions on t2, not UPDATE permissions). I've >>> changed that and added new regression tests to test that >>> change. >> >> I assume the entire refactoring patch needs a fair bit of work >> to rebase against current HEAD, > > Actually, there haven't been any conflicting changes so far, so a > git rebase was able to automatically merge correctly -- new patch > attached, with some minor comment rewording (not affecting the > bug-fix part). Good to hear. > Even so, I agree that it makes sense to apply the bug-fix > separately, since it's not really anything to do with the > refactoring. > >> but I picked out the attached to address just the above issue. >> Does this look correct, and if so does it make sense to apply at >> least this part right now? > > Looks correct to me. Thanks -- committed and pushed to HEAD and 9.5 - -- Joe Conway -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.22 (GNU/Linux) iQIcBAEBAgAGBQJVulOVAAoJEDfy90M199hlURUP/2TF7r77taLPhQtEk3CFFQEn mrt90N4DJ43VwGwC7mfdBsKXoJ+3jF3Hpghw/7ulI731/Io7C514gYDDvwGkrJWu vK3vzXEQu9CIIfh97CsJ5mmenaaxrF9ZSaWDbYvQQMwMnxUS5CGWwR6VSp+NhCZ9 cnfA7idbxNjfBsjG0nQvtSgV/HOp0tP3A6dlYPTXPiIzbT9IiOpxWPwoQYgMSTcP TBgK5MHG5JWrK1Bcg3BlQzYZefKEwN+LGU6zal4P4AjM14FfyMKfMc9A6EP9vtRl jFekmRUddbXxWddl0ZSSV5BY9BLTRL2CZFhMQNQ9xKDlsK1cuYORN4v+TgRCjPKy PdMH2tgndWsNNRTmj/vWUJxMXnHARl8MmtY8pau5Z6PKNUcASqd5Xq+zfKxOw8vf lS8c4eRsLcCD+TZ1rv5K6VULmwBViU0gKP6Xs62yDHsz/Zwvt2ar1fW/25peohhb m4j8vOCsdik9DDcJf6dF8sbb/z0FVh+JQqWhjbSJYioX9BOw/1AoNbi44wS7HzV1 vdhWx6qGWZnxi5qtb9j8BU0eFr/Q65kU3hsp2smRA/IK0bCQaO08rDQlPYsIHq10 SFodULNKFzpGvkzQ2Yqv1oyJ6jMvLtWgr9vBUZvPo8OHUyAkR8kfrZyzWyr/L/Mm 6jcuFNdYSS5F7W/S7ost =GJw9 -----END PGP SIGNATURE----- -- Sent via pgsql-hackers mailing list (pgsql-hackers@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-hackers