From: Joe Conway <mail@joeconway.com>
To: Noah Misch <noah@leadboat.com>
To: Robert Haas <robertmhaas@gmail.com>
Cc: Mike Palmiotto <mike.palmiotto@crunchydata.com>
Cc: fte@nct.ru, PostgreSQL mailing lists <pgsql-bugs@postgresql.org>
Cc: Michael Paquier <michael.paquier@gmail.com>
Cc: Amit Langote <amitlangote09@gmail.com>
Cc: pgsql-hackers@postgresql.org
Subject: Re: BUG #14682: row level security not work with partitioned table
Date: Mon, 5 Jun 2017 07:20:46 -0700
Message-ID: <665f3a45-46e0-e49e-b4c0-5159785b638a@joeconway.com> (raw)
In-Reply-To: <20170604223314.GB1547727@rfd.leadboat.com>
References: <20170601065959.1486.69906@wrigleys.postgresql.org>
<CAMN686FExvZrfDzmi2+8Zd4bfsLhz+7upX=p8AS_DPhdGKoKxA@mail.gmail.com>
<CAB7nPqSUKZoYGo2mMgCw6UF+WAK9VByo-0hc0jZqX=eSHn8xtw@mail.gmail.com>
<20170604223314.GB1547727@rfd.leadboat.com>
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-bugs>
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
>> <mike.palmiotto@crunchydata.com> wrote:
>> > This is indeed a bug. fireRIRrules is currently skipping the RLS
>> > policy check when relkind == PARTITIONED_TABLES, so RLS policies are
>> > not applied. The attached patch fixes the behavior.
>>
>> 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.
>
> [Action required within three days. This is a generic notification.]
>
> 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 open
> item.
Unless Robert objects, I'll work with Mike to get a fix posted and
committed in the next day or two.
Joe
--
Crunchy Data - http://crunchydata.com
PostgreSQL Support for Secure Enterprises
Consulting, Training, & Open Source Development
Attachments:
signature.asc (application/pgp-signature, 818B) download
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-bugs@postgresql.org
Cc: mail@joeconway.com, noah@leadboat.com, robertmhaas@gmail.com, mike.palmiotto@crunchydata.com, michael.paquier@gmail.com, amitlangote09@gmail.com, pgsql-hackers@postgresql.org
Subject: Re: BUG #14682: row level security not work with partitioned table
In-Reply-To: <665f3a45-46e0-e49e-b4c0-5159785b638a@joeconway.com>
References: <20170601065959.1486.69906@wrigleys.postgresql.org> <CAMN686FExvZrfDzmi2+8Zd4bfsLhz+7upX=p8AS_DPhdGKoKxA@mail.gmail.com> <CAB7nPqSUKZoYGo2mMgCw6UF+WAK9VByo-0hc0jZqX=eSHn8xtw@mail.gmail.com> <20170604223314.GB1547727@rfd.leadboat.com> <665f3a45-46e0-e49e-b4c0-5159785b638a@joeconway.com>
* 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