pgsql: Ensure that we retry rather than erroring out when send() or - Mailing list pgsql-committers

From tgl@postgresql.org (Tom Lane)
Subject pgsql: Ensure that we retry rather than erroring out when send() or
Date
Msg-id 20060716181723.AA6DB9FA25A@postgresql.org
Whole thread Raw
List pgsql-committers
Log Message:
-----------
Ensure that we retry rather than erroring out when send() or recv() return
EINTR; the stats code was failing to do this and so were a couple of places
in the postmaster.  The stats code assumed that recv() could not return EINTR
if a preceding select() showed the socket to be read-ready, but this is
demonstrably false with our Windows implementation of recv(), and it may
not be the case on all Unix variants either.  I think this explains the
intermittent stats regression test failures we've been seeing, as well
as reports of stats collector instability under high load on Windows.

Backpatch as far as 8.0.

Tags:
----
REL8_1_STABLE

Modified Files:
--------------
    pgsql/src/backend/postmaster:
        pgstat.c (r1.111.2.5 -> r1.111.2.6)

(http://developer.postgresql.org/cvsweb.cgi/pgsql/src/backend/postmaster/pgstat.c.diff?r1=1.111.2.5&r2=1.111.2.6)
        postmaster.c (r1.475.2.5 -> r1.475.2.6)

(http://developer.postgresql.org/cvsweb.cgi/pgsql/src/backend/postmaster/postmaster.c.diff?r1=1.475.2.5&r2=1.475.2.6)

pgsql-committers by date:

Previous
From: tgl@postgresql.org (Tom Lane)
Date:
Subject: pgsql: Ensure that we retry rather than erroring out when send() or
Next
From: tgl@postgresql.org (Tom Lane)
Date:
Subject: pgsql: Ensure that we retry rather than erroring out when send() or