Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dHssH-0005U8-6u for pgsql-bugs@arkaria.postgresql.org; Mon, 05 Jun 2017 14:20:53 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84_2) (envelope-from ) id 1dHssG-0006ZU-At for pgsql-bugs@arkaria.postgresql.org; Mon, 05 Jun 2017 14:20:52 +0000 Received: from makus.postgresql.org ([2001:4800:1501:1::229]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1dHssF-0006Xu-0W; Mon, 05 Jun 2017 14:20:51 +0000 Received: from 104-190-1-44.lightspeed.sndgca.sbcglobal.net ([104.190.1.44] helo=joeconway.com) by makus.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dHssC-0005YW-IM; Mon, 05 Jun 2017 14:20:49 +0000 Received: from [72.214.29.243] (account jconway@joeconway.com HELO [192.168.4.41]) by joeconway.com (CommuniGate Pro SMTP 6.1.4) with ESMTPSA id 18697107; Mon, 05 Jun 2017 07:20:47 -0700 Subject: Re: BUG #14682: row level security not work with partitioned table To: Noah Misch , Robert Haas Cc: Mike Palmiotto , fte@nct.ru, PostgreSQL mailing lists , Michael Paquier , Amit Langote , pgsql-hackers@postgresql.org References: <20170601065959.1486.69906@wrigleys.postgresql.org> <20170604223314.GB1547727@rfd.leadboat.com> From: Joe Conway Openpgp: id=4EA5B4659ED59CC9538139A5332B7E68B699434A Message-ID: <665f3a45-46e0-e49e-b4c0-5159785b638a@joeconway.com> Date: Mon, 5 Jun 2017 07:20:46 -0700 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.1.1 MIME-Version: 1.0 In-Reply-To: <20170604223314.GB1547727@rfd.leadboat.com> Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="rXILfh9QL5f6OBBAWk6t7uNtFRJXbtq2R" X-Pg-Spam-Score: -0.9 (/) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-bugs Precedence: bulk Sender: pgsql-bugs-owner@postgresql.org This is an OpenPGP/MIME signed message (RFC 4880 and 3156) --rXILfh9QL5f6OBBAWk6t7uNtFRJXbtq2R From: Joe Conway To: Noah Misch , Robert Haas Cc: Mike Palmiotto , fte@nct.ru, PostgreSQL mailing lists , Michael Paquier , Amit Langote , pgsql-hackers@postgresql.org Message-ID: <665f3a45-46e0-e49e-b4c0-5159785b638a@joeconway.com> Subject: Re: [BUGS] BUG #14682: row level security not work with partitioned table References: <20170601065959.1486.69906@wrigleys.postgresql.org> <20170604223314.GB1547727@rfd.leadboat.com> In-Reply-To: <20170604223314.GB1547727@rfd.leadboat.com> Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Content-Language: en-US On 06/04/2017 03:33 PM, Noah Misch wrote: > On Fri, Jun 02, 2017 at 09:28:16AM +0900, Michael Paquier wrote: >> On Thu, Jun 1, 2017 at 11:13 AM, Mike Palmiotto >> wrote: >> > This is indeed a bug. fireRIRrules is currently skipping the RLS >> > policy check when relkind =3D=3D PARTITIONED_TABLES, so RLS policies a= re >> > not applied. The attached patch fixes the behavior. >>=20 >> I would expect RLS to trigger as well in this context. Note that there >> should be regression tests to avoid this failure again in the future. >> I have added an open item. >=20 > [Action required within three days. This is a generic notification.] >=20 > The above-described topic is currently a PostgreSQL 10 open item. Robert, > since you committed the patch believed to have created it, you own this o= pen > item. Unless Robert objects, I'll work with Mike to get a fix posted and committed in the next day or two. Joe --=20 Crunchy Data - http://crunchydata.com PostgreSQL Support for Secure Enterprises Consulting, Training, & Open Source Development --rXILfh9QL5f6OBBAWk6t7uNtFRJXbtq2R Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v2 iQIcBAEBCAAGBQJZNWi+AAoJEDfy90M199hlDXQP/iYkm2x5ne7zwZC0IhrJVvTf mslafut0h+mPulTEYaJzBhcROD0I+PSpPtjWUnzLgWbALCcoG33C+Z4NxkPac/9Q e5iqLhG7RDNICqtL0BuLpZIqYsTwCQDPTPh4QQUIrTKpJzFI6fsFs7EGtfeE64My 5i+B/tEdvRqbxdBhAx13nXERcUThQK+hT9F+wi0kNEYx76bHI9LY9sZgje8j2fxO v4zj2jMZN/WWgx1k02RhlG5fq8S1pvlxXguLldjMqr0xbwA9KuOinUX6Nj6K+lJJ LQ7Oln0GLzGdHN3b+REjVg4wC9ymzOp8iLjP0At1J5s9aLIUYVIeVxuyUyHwE3PY DZsWtthFJvJ3U0dqYjseVFu95ZBxIKQuW22EPjG1PGZn04YgxD9IAErK9ZKlkpDr XYYqQ5Uex71DH5JpGt3R9oqQXwtYebtmUxquMeTiEuNXswX82OWnwgMYDwafIIWx mPAD7jLS4iIFzUE93HBIjpcaMdJ0j+4rXReO99NxJOxdCJ1S56KP/4WN9sxqSmp7 Feif3UppASie5SzPStVKuW2+NmhXszdagAyGTZPCqAr9EFSiHp87urxELMvk0kn2 bdXNJL58JHAFq5cVqhoq5zSut+dg8sdgO9pgxC5wUlLbDlq/g4QpQNpHJYb+sFAV aX6gCCCAjvXmjXdNCTn3 =d8r4 -----END PGP SIGNATURE----- --rXILfh9QL5f6OBBAWk6t7uNtFRJXbtq2R--