Re: Fix race in ReplicationSlotRelease for ephemeral slots - Mailing list pgsql-hackers

From Fujii Masao
Subject Re: Fix race in ReplicationSlotRelease for ephemeral slots
Date
Msg-id CAHGQGwEkkYchHB=EaArhRh25y5exhFxKxV7ZeVyG-uxUair=kw@mail.gmail.com
Whole thread
In response to Re: Fix race in ReplicationSlotRelease for ephemeral slots  (Fujii Masao <masao.fujii@gmail.com>)
List pgsql-hackers
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

Attachment

pgsql-hackers by date:

Previous
From: Laurenz Albe
Date:
Subject: Re: Key joins
Next
From: Heikki Linnakangas
Date:
Subject: Re: injection_points: Switch wait/wakeup to use atomics rather than latches