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

pgsql: On Windows, use pgwin32_waitforsinglesocket() instead of select()

From: tgl(at)postgresql(dot)org (Tom Lane)
To: pgsql-committers(at)postgresql(dot)org
Subject: pgsql: On Windows, use pgwin32_waitforsinglesocket() instead of select()
Date: 2007-01-26 20:06:52
Message-ID: 20070126200652.EF1FB9FB1BF@postgresql.org (view raw or flat)
Thread:
Lists: pgsql-committers
Log Message:
-----------
On Windows, use pgwin32_waitforsinglesocket() instead of select() to wait for
input in the stats collector.  Our select() emulation is apparently buggy
for UDP sockets :-(.  This should resolve problems with stats collection
(and hence autovacuum) failing under more than minimal load.  Diagnosis
and patch by Magnus Hagander.

Patch probably needs to be back-ported to 8.1 and 8.0, but first let's
see if it makes the buildfarm happy...

Modified Files:
--------------
    pgsql/src/backend/libpq:
        be-secure.c (r1.75 -> r1.76)
        (http://developer.postgresql.org/cvsweb.cgi/pgsql/src/backend/libpq/be-secure.c.diff?r1=1.75&r2=1.76)
    pgsql/src/backend/port/win32:
        socket.c (r1.16 -> r1.17)
        (http://developer.postgresql.org/cvsweb.cgi/pgsql/src/backend/port/win32/socket.c.diff?r1=1.16&r2=1.17)
    pgsql/src/backend/postmaster:
        pgstat.c (r1.143 -> r1.144)
        (http://developer.postgresql.org/cvsweb.cgi/pgsql/src/backend/postmaster/pgstat.c.diff?r1=1.143&r2=1.144)
    pgsql/src/include/port:
        win32.h (r1.71 -> r1.72)
        (http://developer.postgresql.org/cvsweb.cgi/pgsql/src/include/port/win32.h.diff?r1=1.71&r2=1.72)

pgsql-committers by date

Next:From: Tom LaneDate: 2007-01-26 20:07:01
Subject: pgsql: On Windows, use pgwin32_waitforsinglesocket() instead of select()
Previous:From: Neil ConwayDate: 2007-01-26 17:45:42
Subject: pgsql: Squelch some VC++ compiler warnings.

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