Skip site navigation (1) Skip section navigation (2)

pgsql: In pgstat.c,use a timeout in WaitLatchOrSocket only on Windows.

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: pgsql-committers(at)postgresql(dot)org
Subject: pgsql: In pgstat.c,use a timeout in WaitLatchOrSocket only on Windows.
Date: 2012-05-15 03:51:48
Message-ID: E1SU8nc-0005pv-TK@gemulon.postgresql.org (view raw or flat)
Thread:
Lists: 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

Next:From: Heikki LinnakangasDate: 2012-05-15 16:35:42
Subject: pgsql: Fix bug in to_tsquery().
Previous:From: Tom LaneDate: 2012-05-15 03:09:16
Subject: pgsql: Revert "Add some temporary instrumentation to pgstat.c."

Privacy Policy | About PostgreSQL
Copyright © 1996-2014 The PostgreSQL Global Development Group