Unix Technical Forum

pgsql: Ensure that we retry rather than erroring out when send() or

This is a discussion on pgsql: Ensure that we retry rather than erroring out when send() or within the pgsql Committers forums, part of the PostgreSQL category; --> Log Message: ----------- Ensure that we retry rather than erroring out when send() or recv() return EINTR; the stats ...


Go Back   Unix Technical Forum > Database Server Software > PostgreSQL > pgsql Committers

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 04-10-2008, 06:39 PM
Tom Lane
 
Posts: n/a
Default pgsql: Ensure that we retry rather than erroring out when send() or

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_0_STABLE

Modified Files:
--------------
pgsql/src/backend/postmaster:
pgstat.c (r1.87.4.2 -> r1.87.4.3)
(http://developer.postgresql.org/cvsw....2&r2=1.87.4.3)
postmaster.c (r1.443.4.7 -> r1.443.4.8)
(http://developer.postgresql.org/cvsw...7&r2=1.443.4.8)

---------------------------(end of broadcast)---------------------------
TIP 6: explain analyze is your friend

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump


All times are GMT. The time now is 11:09 PM.


Powered by vBulletin® Version 3.6.5
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.2.0
www.UnixAdminTalk.com