Re: perform_spin_delay() vs wait events

From: Andres Freund <andres(at)anarazel(dot)de>
To: Alexander Korotkov <aekorotkov(at)gmail(dot)com>
Cc: Robert Haas <robertmhaas(at)gmail(dot)com>, pgsql-hackers(at)postgresql(dot)org
Subject: Re: perform_spin_delay() vs wait events
Date: 2022-11-22 03:01:18
Message-ID: 20221122030118.e3icc34h7id3ouja@awork3.anarazel.de
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

Hi,

On 2022-11-22 00:03:23 +0300, Alexander Korotkov wrote:
> On Tue, Nov 22, 2022 at 12:01 AM Andres Freund <andres(at)anarazel(dot)de> wrote:
> > On November 21, 2022 12:58:16 PM PST, Alexander Korotkov <aekorotkov(at)gmail(dot)com> wrote:
> > >On Mon, Nov 21, 2022 at 2:10 AM Andres Freund <andres(at)anarazel(dot)de> wrote:
> > >+1 for making a group of individual names spin delays.
> >
> > Personally I'm not interested in doing that work, tbh.
>
> Oh, then I have no objection to the "as is" state, because it doesn't
> exclude the future improvements. But this is still my 2 cents though.

I added a note about possibly extending this in the future to both code and
commit message. Attached.

I plan to push this soon unless somebody has further comments.

Greetings,

Andres Freund

Attachment Content-Type Size
v2-0001-Add-wait-event-for-pg_usleep-in-perform_spin_dela.patch text/x-diff 3.8 KB

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Hayato Kuroda (Fujitsu) 2022-11-22 03:03:52 RE: wake up logical workers after ALTER SUBSCRIPTION
Previous Message Nathan Bossart 2022-11-22 02:50:33 Re: wake up logical workers after ALTER SUBSCRIPTION