aboutsummaryrefslogtreecommitdiff
path: root/src/backend/tcop/postgres.c
diff options
context:
space:
mode:
authorTom Lane <tgl@sss.pgh.pa.us>2006-07-16 18:17:23 +0000
committerTom Lane <tgl@sss.pgh.pa.us>2006-07-16 18:17:23 +0000
commit74dac69e3c20487b0c2eacee05b4ff8ba12ce640 (patch)
treeee7998389aca2bd2818ea396fdc8b3fb47d03045 /src/backend/tcop/postgres.c
parent78e8400a52c6ceaa9674172ffd6ab658c72379d6 (diff)
downloadpostgresql-74dac69e3c20487b0c2eacee05b4ff8ba12ce640.tar.gz
postgresql-74dac69e3c20487b0c2eacee05b4ff8ba12ce640.zip
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.
Diffstat (limited to 'src/backend/tcop/postgres.c')
0 files changed, 0 insertions, 0 deletions