Re: Assert failure with MERGE into partitioned table with RLS

From: Dean Rasheed <dean(dot)a(dot)rasheed(at)gmail(dot)com>
To: PostgreSQL Hackers <pgsql-hackers(at)lists(dot)postgresql(dot)org>
Subject: Re: Assert failure with MERGE into partitioned table with RLS
Date: 2023-02-22 11:01:51
Message-ID: CAEZATCXwJdOpnkb-NAmKkU0JRA5edkJNeJJHAsWqFQzC1tXPbA@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

On Mon, 20 Feb 2023 at 16:18, Dean Rasheed <dean(dot)a(dot)rasheed(at)gmail(dot)com> wrote:
>
> As part of the MERGE RETURNING patch I noticed a suspicious Assert()
> in ExecInitPartitionInfo() that looked like it needed updating for
> MERGE.
>
> After more testing, I can confirm that this is indeed a pre-existing
> bug, that can be triggered using MERGE into a partitioned table that
> has RLS enabled (and hence non-empty withCheckOptionLists to
> initialise).
>
> So I think we need something like the attached.
>

Pushed and back-patched.

Regards,
Dean

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message Alvaro Herrera 2023-02-22 11:35:32 Re: LWLock deadlock in brinRevmapDesummarizeRange
Previous Message Heikki Linnakangas 2023-02-22 10:57:16 Re: Disable rdns for Kerberos tests