Re: [GENERAL] Commit hung bug

2013-08-21 Thread S H
Can i see list of commit related bugs in postgresql. In one of customer,  
commit returned successfully but operation is actually  committed after an hour 
or so successful ( Postgres version -8.1.18).
I am proposing customer to shift to  latest version as there is many fixes and 
major performance improvement in latest 9.x versions.

See http://archives.postgresql.org/pgsql-hackers/2006-10/msg00561.php

I am sorry i could not understand it. What will be impact to postgresql user in 
this bug.


 Date: Wed, 21 Aug 2013 00:37:08 -0400
 From: alvhe...@2ndquadrant.com
 To: msq...@live.com
 CC: pgsql-general@postgresql.org
 Subject: Re: [GENERAL] Commit hung bug
 
 S H wrote:
  There is one bug mentioned  commit hung for days..
  http://www.postgresql.org/message-id/1af3044fcab26f4db1ae551f8a33634b3d2...@mail.digital-rapids.com
The interesting thing would be to see the server logs, not the 
  application logs. Specifically, an issue that could look just likethis was 
  fixed in 8.1.7, in which case you would see weird error messages about 
  permission denied or such in the *server* logs. None of thatwould show up 
  in the client logs.
  Any idea what exactly is this bug.
  I could not make out relation between release notes mentioned in 
  http://www.postgresql.org/docs/8.1/static/release-8-1-7.html
  and above comment.
 
 Maybe it's this commit, which was part of 8.1.6:
 
 commit 9f1b531420ee13d04c7701b34bb4b874df7ff2fa
 Author: Teodor Sigaev teo...@sigaev.ru
 Date:   Fri Oct 13 14:00:17 2006 +
 
 Fix infinite sleep and failes of send in Win32.
 
 1) pgwin32_waitforsinglesocket(): WaitForMultipleObjectsEx now called with
 finite timeout (100ms) in case of FP_WRITE and UDP socket. If timeout 
 occurs
 then pgwin32_waitforsinglesocket() tries to write empty packet goes to
 WaitForMultipleObjectsEx again.
 
 2) pgwin32_send(): add loop around WSASend and 
 pgwin32_waitforsinglesocket().
 The reason is: for overlapped socket, 'ok' result from
 pgwin32_waitforsinglesocket() isn't guarantee that socket is still free,
 it can become busy again and following WSASend call will fail with
 WSAEWOULDBLOCK error.
 
 See http://archives.postgresql.org/pgsql-hackers/2006-10/msg00561.php
 
 
 It's troubling to be talking about a bug that was patched in 2006 for
 the 8.1.6 release, however.  Anything prior to that is not something
 anyone should be using anymore.  At the very least, you should have
 migrated to 8.1.23; but 8.1 has been unsupported altogether for more
 than two years now.  Even 8.2 is out of support.
 
 -- 
 Álvaro Herrerahttp://www.2ndQuadrant.com/
 PostgreSQL Development, 24x7 Support, Training  Services
  

[GENERAL] Commit hung bug

2013-08-20 Thread S H
There is one bug mentioned  commit hung for days..
http://www.postgresql.org/message-id/1af3044fcab26f4db1ae551f8a33634b3d2...@mail.digital-rapids.com
  The interesting thing would be to see the server logs, not the application 
logs. Specifically, an issue that could look just likethis was fixed in 8.1.7, 
in which case you would see weird error messages about permission denied or 
such in the *server* logs. None of thatwould show up in the client logs.
Any idea what exactly is this bug.
I could not make out relation between release notes mentioned in 
http://www.postgresql.org/docs/8.1/static/release-8-1-7.html
and above comment.
Regards,S H   

Re: [GENERAL] Commit hung bug

2013-08-20 Thread Alvaro Herrera
S H wrote:
 There is one bug mentioned  commit hung for days..
 http://www.postgresql.org/message-id/1af3044fcab26f4db1ae551f8a33634b3d2...@mail.digital-rapids.com
   The interesting thing would be to see the server logs, not the 
 application logs. Specifically, an issue that could look just likethis was 
 fixed in 8.1.7, in which case you would see weird error messages about 
 permission denied or such in the *server* logs. None of thatwould show up in 
 the client logs.
 Any idea what exactly is this bug.
 I could not make out relation between release notes mentioned in 
 http://www.postgresql.org/docs/8.1/static/release-8-1-7.html
 and above comment.

Maybe it's this commit, which was part of 8.1.6:

commit 9f1b531420ee13d04c7701b34bb4b874df7ff2fa
Author: Teodor Sigaev teo...@sigaev.ru
Date:   Fri Oct 13 14:00:17 2006 +

Fix infinite sleep and failes of send in Win32.

1) pgwin32_waitforsinglesocket(): WaitForMultipleObjectsEx now called with
finite timeout (100ms) in case of FP_WRITE and UDP socket. If timeout occurs
then pgwin32_waitforsinglesocket() tries to write empty packet goes to
WaitForMultipleObjectsEx again.

2) pgwin32_send(): add loop around WSASend and 
pgwin32_waitforsinglesocket().
The reason is: for overlapped socket, 'ok' result from
pgwin32_waitforsinglesocket() isn't guarantee that socket is still free,
it can become busy again and following WSASend call will fail with
WSAEWOULDBLOCK error.

See http://archives.postgresql.org/pgsql-hackers/2006-10/msg00561.php


It's troubling to be talking about a bug that was patched in 2006 for
the 8.1.6 release, however.  Anything prior to that is not something
anyone should be using anymore.  At the very least, you should have
migrated to 8.1.23; but 8.1 has been unsupported altogether for more
than two years now.  Even 8.2 is out of support.

-- 
Álvaro Herrerahttp://www.2ndQuadrant.com/
PostgreSQL Development, 24x7 Support, Training  Services


-- 
Sent via pgsql-general mailing list (pgsql-general@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-general