On Windows, use pgwin32_waitforsinglesocket() instead of select() to wait for
Tom Lane <tgl@sss.pgh.pa.us>
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
| Path | Change | +/− |
|---|---|---|
| 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 |