In pgstat.c, use a timeout in WaitLatchOrSocket only on Windows.
authorTom Lane <tgl@sss.pgh.pa.us>
Tue, 15 May 2012 03:51:34 +0000 (23:51 -0400)
committerTom Lane <tgl@sss.pgh.pa.us>
Tue, 15 May 2012 03:51:34 +0000 (23:51 -0400)
commit9b63e9869ffaa4d6d3e8bf45086a765d8f310f1c
tree0614e22273530b7b8d7316e8b2a0baf682dfdbd4
parent5a2bb060121f574d6587e5fc6c7f1d4e3a759351
In pgstat.c, use a timeout in WaitLatchOrSocket only on Windows.

We have no need for a timeout here really, but some broken products from
Redmond seem to lose FD_READ events occasionally, and waking up and
retrying the recv() is the only known way to work around that.  Perhaps
somebody will be motivated to figure out a better answer here; but not I.
src/backend/postmaster/pgstat.c