Received: from maia.hub.org (unknown [200.46.204.183]) by mail.postgresql.org (Postfix) with ESMTP id 842BA633ECB for ; Thu, 4 Jun 2009 18:50:23 -0300 (ADT) Received: from mail.postgresql.org ([200.46.204.86]) by maia.hub.org (mx1.hub.org [200.46.204.183]) (amavisd-maia, port 10024) with ESMTP id 89446-04 for ; Thu, 4 Jun 2009 18:50:20 -0300 (ADT) X-Greylist: from auto-whitelisted by SQLgrey-1.7.6 Received: from outmail128154.authsmtp.net (outmail128154.authsmtp.net [62.13.128.154]) by mail.postgresql.org (Postfix) with ESMTP id CE84C6338D9 for ; Thu, 4 Jun 2009 18:50:20 -0300 (ADT) Received: from mail-c189.authsmtp.com (mail-c189.authsmtp.com [62.13.128.71]) by punt3.authsmtp.com (8.14.2/8.14.2/Kp) with ESMTP id n54LnuR9005013; Thu, 4 Jun 2009 22:49:56 +0100 (BST) Received: from [192.168.0.5] (85-211-225-42.dyn.gotadsl.co.uk [85.211.225.42]) (authenticated bits=0) by mail.authsmtp.com (8.14.2/8.14.2/Kp) with ESMTP id n54Lnst4040812; Thu, 4 Jun 2009 22:49:54 +0100 (BST) Subject: Re: Deadlock detection From: Simon Riggs To: Kris Jurka Cc: Oliver Jowett , Daniel Migowski , PostgreSQL - JDBC In-Reply-To: References: <1232531884.2327.342.camel@ebony.2ndQuadrant> <49771246.9020306@ikoffice.de> <1232583410.2327.704.camel@ebony.2ndQuadrant> <4977BB90.8090806@opencloud.com> <4977C8FD.7040204@opencloud.com> <4977D10A.9040706@opencloud.com> <4977D3DC.1080806@opencloud.com> Content-Type: text/plain Date: Thu, 04 Jun 2009 22:53:33 +0100 Message-Id: <1244152413.23910.311.camel@ebony.2ndQuadrant> Mime-Version: 1.0 X-Mailer: Evolution 2.12.0 Content-Transfer-Encoding: 7bit X-Server-Quench: a3d5ada5-5151-11de-a90b-001f29070be2 X-AuthRoute: OCdxZQATClZOTQEd DAteCiNZVAwpPBRK HVkIKg5MJUcNSQVJ NksachtFaAFbZ0xf HGQLW11EUl97XWp/ bg8fZQBDYEtPQQdo VVZNQE1QEQdtHhxP WBsaLkcxMwFGfH54 ZEQsXHNTWQordhJ4 ExoFEHADZGJhdWEe BBVFJgpUIh5Kfh4T aFl/U3NfNGdJBC9q VzwRExoaCH1zJS1Z RgYGLhoeTFoGFSI9 QBZq X-Authentic-SMTP: 61633235383639.kestrel.dmpriest.net.uk:1562/Kp X-Report-SPAM: If SPAM / abuse - report it at: http://www.authsmtp.com/abuse X-Virus-Status: No virus detected - but ensure you scan with your own anti-virus system. X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=0 tagged_above=0 required=5 tests=none X-Spam-Level: X-Archive-Number: 200906/30 X-Sequence-Number: 19694 On Mon, 2009-06-01 at 19:30 -0400, Kris Jurka wrote: > 1) It avoids deadlocks by buffering the writes in local memory. That's > great, but wasn't really the point of the thread. Would we suggest people > run with antiDeadlock=true in a production environment to avoid deadlocks? > If so, why wouldn't it be the default. > So it's a useful piece of code, but I'm not sure what context it should > really be used in. Is anyone using this? For what purpose? The reason the code was written went away before the code could sensibly be used. We removed the contention in the database by redesign rather than by JDBC changes. Thanks to Oliver for taking the time. Having said that, it is clear there were some issues there that are not fully explained. It may be that it is a JDBC driver issue, but also it may be a protocol/handling issue. Intermittent issues are hard to get a full state on to debug, and we are left looking at spoor or wishing we had some. I would like to see code added to the driver for (1), or other code. My main request is that we have some way of responding to the problems that we know can exist. The main argument for not buffering everything would be performance, I think. 99.9% of users are happy as is, so to act in a way that effects them would be bad. Sometimes, a "safe mode" would be a useful thing to be able to enable, as a way of eliminating doubt. -- Simon Riggs www.2ndQuadrant.com PostgreSQL Training, Services and Support