public inbox for [email protected]  
help / color / mirror / Atom feed
From: Robert Haas <[email protected]>
To: Michael Paquier <[email protected]>
Cc: Postgres hackers <[email protected]>
Cc: Andrey Borodin <[email protected]>
Subject: Re: injection_points: Switch wait/wakeup to use atomics rather than latches
Date: Fri, 29 May 2026 08:48:58 -0400
Message-ID: <CA+TgmoYE-9WhM-owWtX3grbSeHtOJCF__wEEdoD-jj-oJ+=TSg@mail.gmail.com> (raw)
In-Reply-To: <[email protected]>
References: <[email protected]>
	<CA+TgmoamSXmT7uMXBw6c3YJgSSz6dYdpMsJf47jwaPH9kVbmyA@mail.gmail.com>
	<[email protected]>

On Thu, May 28, 2026 at 7:19 PM Michael Paquier <[email protected]> wrote:
> On Thu, May 28, 2026 at 08:40:39AM -0400, Robert Haas wrote:
> > 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.
>
> This is an exchange between responsiveness of the system and
> flexibility.  I have had two complaints in the past about the fact
> that the waits and wakeups were not doable due to the fact that we
> rely on condition variables and latches:

I'm still struggling to understand. Condition variables and latches
are both designed to allow for nice waits and wakeups.

-- 
Robert Haas
EDB: http://www.enterprisedb.com





view thread (21+ messages)  latest in thread

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients using the --to and --cc options:
  reply via email

  To: [email protected]
  Cc: [email protected], [email protected], [email protected], [email protected]
  Subject: Re: injection_points: Switch wait/wakeup to use atomics rather than latches
  In-Reply-To: <CA+TgmoYE-9WhM-owWtX3grbSeHtOJCF__wEEdoD-jj-oJ+=TSg@mail.gmail.com>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by agora; see mirroring instructions
for how to clone and mirror all data and code used for this inbox