Re: 048_vacuum_horizon_floor.pl hangs due to wakeup lost inside LockBufferForCleanup

Fujii Masao <masao.fujii@gmail.com>

From: Fujii Masao <masao.fujii@gmail.com>
To: Xuneng Zhou <xunengzhou@gmail.com>
Cc: Andres Freund <andres@anarazel.de>, Alexander Lakhin <exclusion@gmail.com>, pgsql-hackers <pgsql-hackers@postgresql.org>
Date: 2026-06-30T01:40:22Z
Lists: pgsql-hackers
On Sat, Jun 27, 2026 at 10:56 AM Xuneng Zhou <xunengzhou@gmail.com> wrote:
> > As far as I read the patch, it looks good to me, so I'm inclined to
> > commit it unless another committer on this thread would like to do so.
> > But any objections?
> >
> > BTW, since the issue was introduced by commits 5310fac6e0f and
> > c75ebc657ffc, this fix only needs to be applied to master.
> > Is that correct?
>
> I think this is true.

I've pushed the patch. Thanks!

Regards,

-- 
Fujii Masao



Commits

  1. bufmgr: Fix race in LockBufferForCleanup()

  2. bufmgr: Use atomic sub for unpinning buffers

  3. bufmgr: Allow some buffer state modifications while holding header lock