Re: BUG #18031: Segmentation fault after deadlock within VACUUM's parallel worker

Andres Freund <andres@anarazel.de>

From: Andres Freund <andres@anarazel.de>
To: Masahiko Sawada <sawada.mshk@gmail.com>
Cc: exclusion@gmail.com, pgsql-bugs@lists.postgresql.org
Date: 2023-07-25T16:27:43Z
Lists: pgsql-bugs
On 2023-07-25 16:35:54 +0900, Masahiko Sawada wrote:
> Thank you for your confirmation. I can push the fix if you're okay.
> I've attached the patch.

LGTM.

Thanks!



Commits

  1. Fix crash with RemoveFromWaitQueue() when detecting a deadlock.

  2. Use dlist/dclist instead of PROC_QUEUE / SHM_QUEUE for heavyweight locks