On Windows, use pgwin32_waitforsinglesocket() instead of select() to wait for

Tom Lane <tgl@sss.pgh.pa.us>

Commit: 043fcd661611979d10292108eda5057878b01154
Author: Tom Lane <tgl@sss.pgh.pa.us>
Date: 2007-01-26T20:07:01Z
Releases: 8.2.2
On Windows, use pgwin32_waitforsinglesocket() instead of select() to wait for
input in the stats collector.  Our select() emulation is apparently buggy
for UDP sockets :-(.  This should resolve problems with stats collection
(and hence autovacuum) failing under more than minimal load.  Diagnosis
and patch by Magnus Hagander.

Patch probably needs to be back-ported to 8.1 and 8.0, but first let's
see if it makes the buildfarm happy...

Files

PathChange+/−
src/backend/libpq/be-secure.c modified +7 −4
src/backend/port/win32/socket.c modified +9 −6
src/backend/postmaster/pgstat.c modified +11 −3
src/include/port/win32.h modified +2 −2