Re: BUG #14682: row level security not work with partitioned table

From: Michael Paquier <michael(dot)paquier(at)gmail(dot)com>
To: Mike Palmiotto <mike(dot)palmiotto(at)crunchydata(dot)com>
Cc: fte(at)nct(dot)ru, PostgreSQL mailing lists <pgsql-bugs(at)postgresql(dot)org>, Robert Haas <robertmhaas(at)gmail(dot)com>, Amit Langote <amitlangote09(at)gmail(dot)com>
Subject: Re: BUG #14682: row level security not work with partitioned table
Date: 2017-06-02 00:28:16
Message-ID: CAB7nPqSUKZoYGo2mMgCw6UF+WAK9VByo-0hc0jZqX=eSHn8xtw@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-bugs pgsql-hackers

On Thu, Jun 1, 2017 at 11:13 AM, Mike Palmiotto
<mike(dot)palmiotto(at)crunchydata(dot)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.
--
Michael

In response to

Responses

Browse pgsql-bugs by date

  From Date Subject
Next Message Michael Paquier 2017-06-02 01:18:17 Re: BUG #14683: *** glibc detected *** SELECT: double free or corruption
Previous Message Michael Paquier 2017-06-02 00:22:39 Re: Re: BUG #14680: startup process on standby encounter a deadlock of TwoPhaseStateLock when redo 2PC xlog

Browse pgsql-hackers by date

  From Date Subject
Next Message Andres Freund 2017-06-02 00:29:12 Re: logical replication and PANIC during shutdown checkpoint in publisher
Previous Message Michael Paquier 2017-06-02 00:22:39 Re: Re: BUG #14680: startup process on standby encounter a deadlock of TwoPhaseStateLock when redo 2PC xlog