On Fri, May 12, 2023 at 11:58 PM Bharath Rupireddy <bharath.rupireddyforpostg...@gmail.com> wrote: > Andres, rightly put it - 'mis-using' CV infrastructure. It is simple, > works, and makes the WalSndWakeup() easy solving the performance > regression.
Yeah, this seems OK, and better than the complicated alternatives. If one day we want to implement CVs some other way so that this I-know-that-CVs-are-really-made-out-of-latches abstraction leak becomes a problem, and we still need this, well then we can make a separate latch-wait-list thing.