pgsql: In pgstat.c, use a timeout in WaitLatchOrSocket only on Windows. - Mailing list pgsql-committers

From Tom Lane
Subject pgsql: In pgstat.c, use a timeout in WaitLatchOrSocket only on Windows.
Date
Msg-id E1SU8nc-0005pv-TK@gemulon.postgresql.org
Whole thread Raw
List pgsql-committers
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.

Branch
------
master

Details
-------
http://git.postgresql.org/pg/commitdiff/9b63e9869ffaa4d6d3e8bf45086a765d8f310f1c

Modified Files
--------------
src/backend/postmaster/pgstat.c |   23 ++++++++++++++++++++---
1 files changed, 20 insertions(+), 3 deletions(-)


pgsql-committers by date:

Previous
From: Tom Lane
Date:
Subject: pgsql: Revert "Add some temporary instrumentation to pgstat.c."
Next
From: Heikki Linnakangas
Date:
Subject: pgsql: Fix bug in to_tsquery().