Re: BUG #17792: MERGE uses uninitialized pointer and crashes when target tuple is updated concurrently

Alexander Law <exclusion@gmail.com>

From: Alexander Lakhin <exclusion@gmail.com>
To: Alvaro Herrera <alvherre@alvh.no-ip.org>, pgsql-bugs@lists.postgresql.org
Date: 2023-02-14T12:00:00Z
Lists: pgsql-bugs
Hello Alvaro,
14.02.2023 14:29, Alvaro Herrera wrote:
> Hmm, yeah: because this is not a partitioned table, we are definitely
> not expecting that cpUpdateRetrySlot will be set.  Can you still
> reproduce the problem with the attached patch?
No, your patch fixes the issue.
Thanks for looking at this!

Best regards,
Alexander



Commits

  1. Don't rely on uninitialized value in MERGE / DELETE