Re: WL_SOCKET_ACCEPT fairness on Windows

Thomas Munro <thomas.munro@gmail.com>

From: Thomas Munro <thomas.munro@gmail.com>
To: "Wei Wang (Fujitsu)" <wangw.fnst@fujitsu.com>
Cc: Andres Freund <andres@anarazel.de>, pgsql-hackers <pgsql-hackers@postgresql.org>
Date: 2023-09-08T06:59:33Z
Lists: pgsql-hackers
I committed this for 17.  It would be good to come up with something
fundamentally better than this, to get rid of that 64 event limit
nonsense, but I don't see it happening in the 17 cycle, and prefer the
semantics with this commit in the meantime.



Commits

  1. Teach WaitEventSetWait() to report multiple events on Windows.

  2. Use WaitEventSet API for postmaster's event loop.