Thread

  1. Re: injection_points: Switch wait/wakeup to use atomics rather than latches

    Robert Haas <robertmhaas@gmail.com> — 2026-05-28T12:40:39Z

    On Wed, May 27, 2026 at 10:43 PM Michael Paquier <michael@paquier.xyz> wrote:
    > While looking at the test proposed on the thread about the ProcKill(),
    > I have been reminded about the fact that relying on latches and a
    > condition variable for the wait and the wakeups has its limits:
    > https://www.postgresql.org/message-id/aheVjCHmcbXBtiy0%40paquier.xyz
    
    After reading this email, the linked-to email, and the commit message
    for the patch, I still don't have a clear understanding of what this
    is intended to fix. It seems like it's going to make the
    responsiveness worse. In general, we want to replace escalating wait
    loops with things that wake up instantly at the right time, and this
    is going in the opposite direction.
    
    -- 
    Robert Haas
    EDB: http://www.enterprisedb.com