Re: [BUG] segfault during delete

Drouvot, Bertrand <bdrouvot@amazon.com>

From: "Drouvot, Bertrand" <bdrouvot@amazon.com>
To: Amit Langote <amitlangote09@gmail.com>
Cc: PostgreSQL-development <pgsql-hackers@postgresql.org>
Date: 2021-02-24T13:05:23Z
Lists: pgsql-hackers
On 2/24/21 1:59 PM, Amit Langote wrote:
>
> On Wed, Feb 24, 2021 at 6:12 PM Drouvot, Bertrand <bdrouvot@amazon.com> wrote:
>> On 2/24/21 9:12 AM, Amit Langote wrote:
>>> I've attached a patch with my suggested fixes and also test cases.
>>> Please take a look.
>> I had a look and it looks good to me. Also the new regression tests are
>> doing it right and are segfaulting without your patch.
>>
>> That's all good to me.
> Thanks.
>
>> That fix should be back ported to 12 and 13, do you agree?
> Yeah, I think so.
great, patch added to the CF.

Bertrand




Commits

  1. Fix use-after-free bug with AfterTriggersTableData.storeslot

  2. Use slots in trigger infrastructure, except for the actual invocation.