On Windows, use pgwin32_waitforsinglesocket() instead of select() to wait for
authorTom Lane <tgl@sss.pgh.pa.us>
Fri, 26 Jan 2007 20:07:01 +0000 (20:07 +0000)
committerTom Lane <tgl@sss.pgh.pa.us>
Fri, 26 Jan 2007 20:07:01 +0000 (20:07 +0000)
commitf74f1989c033054919ab9b7d2394ca5daee0b892
tree9e0c7d39dce1ff0c8ca08f8102369ad5241ed7ff
parent93ca8a2e0f6719e126ecc8fddd9e3d93f0ab8f5c
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...
src/backend/libpq/be-secure.c
src/backend/port/win32/socket.c
src/backend/postmaster/pgstat.c
src/include/port/win32.h