]> granicus.if.org Git - postgresql/commit
For testing purposes, reinsert a timeout in pgstat.c's wait call.
authorTom Lane <tgl@sss.pgh.pa.us>
Mon, 14 May 2012 19:03:14 +0000 (15:03 -0400)
committerTom Lane <tgl@sss.pgh.pa.us>
Mon, 14 May 2012 19:03:14 +0000 (15:03 -0400)
commitd461d0502b6e20c6d4ec326ba2faec8212fd5dee
treeedef6fd3a11847e2801c40f629d7ff7036317330
parentf1ca51549e9e7045a2db95a61744334f1dbb4d64
For testing purposes, reinsert a timeout in pgstat.c's wait call.

Test results from buildfarm members mastodon/narwhal (Windows Server 2003)
make it look like that platform just plain loses FD_READ events
occasionally, and the only reason our previous coding seemed to work was
that it timed out every couple of seconds and retried the whole operation.
Try to verify this by reinserting a finite timeout into the pgstat loop.
This isn't meant to be a permanent patch either, just to confirm or
disprove a theory.
src/backend/postmaster/pgstat.c