Re: walsender performance regression due to logical decoding on standby changes - Mailing list pgsql-hackers

From Jeff Davis
Subject Re: walsender performance regression due to logical decoding on standby changes
Date
Msg-id 65f6ed98791399f4ce06ea1f760599b2dae3fb75.camel@j-davis.com
Whole thread Raw
In response to Re: walsender performance regression due to logical decoding on standby changes  (Andres Freund <andres@anarazel.de>)
List pgsql-hackers
On Wed, 2023-05-17 at 12:34 -0700, Andres Freund wrote:
> I understood Jeff's proposal to just have an early exit if there are
> no
> walsenders connected at all.

My suggestion was we early exit unless there is at least one *waiting*
walsender of the appropriate type. In other words, increment the
counter on entry to WalSndWait() and decrement on exit. I didn't look
in detail yet, so perhaps it's not easy/cheap to do that safely.

Regards,
    Jeff Davis




pgsql-hackers by date:

Previous
From: Andres Freund
Date:
Subject: Re: walsender performance regression due to logical decoding on standby changes
Next
From: Tom Lane
Date:
Subject: Re: PostgreSQL 16 Beta 1 release date