[HACKERS] Re: [BUGS] BUG #14682: row level security not work with partitionedtable - Mailing list pgsql-hackers

From Joe Conway
Subject [HACKERS] Re: [BUGS] BUG #14682: row level security not work with partitionedtable
Date
Msg-id 665f3a45-46e0-e49e-b4c0-5159785b638a@joeconway.com
Whole thread Raw
In response to Re: [HACKERS] BUG #14682: row level security not work with partitioned table  (Noah Misch <noah@leadboat.com>)
Responses Re: [HACKERS] [BUGS] BUG #14682: row level security not work with partitioned table
List pgsql-hackers
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


pgsql-hackers by date:

Previous
From: Robert Haas
Date:
Subject: Re: [HACKERS] PG10 transition tables, wCTEs and multiple operationson the same table
Next
From: Robert Haas
Date:
Subject: Re: [HACKERS] Proposal : For Auto-Prewarm.