Re: Fix race in ReplicationSlotRelease for ephemeral slots
Fujii Masao <masao.fujii@gmail.com>
From: Fujii Masao <masao.fujii@gmail.com>
To: "Zhijie Hou (Fujitsu)" <houzj.fnst@fujitsu.com>
Cc: PostgreSQL Hackers <pgsql-hackers@lists.postgresql.org>
Date: 2026-05-29T13:31:31Z
Lists: pgsql-hackers
Attachments
On Fri, May 29, 2026 at 5:09 PM Fujii Masao <masao.fujii@gmail.com> wrote: > > I am attaching a patch that avoids touching slot shared-memory state after > > dropping an ephemeral slot. Keep the post-release shared-memory updates only for > > non-ephemeral slots, where the slot remains valid after release. > > Thanks for the patch! It looks good to me. > Barring any objections, I will commit it. Since this fix should be backpatched to all supported branches, I prepared patches for them. Attached. Regards, -- Fujii Masao