]> granicus.if.org Git - postgresql/commit
On Windows, use pgwin32_waitforsinglesocket() instead of select() to wait for
authorTom Lane <tgl@sss.pgh.pa.us>
Fri, 26 Jan 2007 20:06:52 +0000 (20:06 +0000)
committerTom Lane <tgl@sss.pgh.pa.us>
Fri, 26 Jan 2007 20:06:52 +0000 (20:06 +0000)
commit4355d214c248c959cfbcd974b5e9ba8a6bf81074
tree4e53e382434fa1e61199caf90a679c842c1cc49f
parent8ff2bccee31a7be12f653bc533b3e76c052534f8
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