X-Original-To: pgsql-jdbc-postgresql.org@localhost.postgresql.org Received: from localhost (av.hub.org [200.46.204.144]) by svr1.postgresql.org (Postfix) with ESMTP id DA993DBB0C for ; Fri, 18 Nov 2005 17:22:51 -0400 (AST) Received: from svr1.postgresql.org ([200.46.204.71]) by localhost (av.hub.org [200.46.204.144]) (amavisd-new, port 10024) with ESMTP id 95456-01 for ; Fri, 18 Nov 2005 21:22:52 +0000 (GMT) X-Greylist: from auto-whitelisted by SQLgrey- Received: from smtp101.rog.mail.re2.yahoo.com (smtp101.rog.mail.re2.yahoo.com [206.190.36.79]) by svr1.postgresql.org (Postfix) with SMTP id C1169DBB03 for ; Fri, 18 Nov 2005 17:22:47 -0400 (AST) Received: (qmail 90791 invoked from network); 18 Nov 2005 21:22:49 -0000 Received: from unknown (HELO phlogiston.dydns.org) (a.sullivan@rogers.com@209.222.54.227 with login) by smtp101.rog.mail.re2.yahoo.com with SMTP; 18 Nov 2005 21:22:49 -0000 Received: by phlogiston.dydns.org (Postfix, from userid 1000) id F210840B6; Fri, 18 Nov 2005 16:22:48 -0500 (EST) Date: Fri, 18 Nov 2005 16:22:48 -0500 From: Andrew Sullivan To: Kris Jurka Cc: Andrew Sullivan , pgsql-jdbc@postgresql.org Subject: Re: Deadlock problem Message-ID: <20051118212248.GG29354@phlogiston.dyndns.org> References: <200511181209.000000EC@dev-null> <20051118180347.GA29354@phlogiston.dyndns.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.9i X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, score=0 required=5 tests=[AWL=0.000] X-Spam-Score: 0 X-Spam-Level: X-Archive-Number: 200511/117 X-Sequence-Number: 14215 On Fri, Nov 18, 2005 at 02:49:53PM -0500, Kris Jurka wrote: > simultaneously, but internally only one is executed at a time. Clearly > running with autocommit = false requires some coordination of > transactions, but multiple threads are not in and of themselves dangerous. I'd _really_ like to see an example of an application that did this correctly and without any bugs. I've seen people do it, yes; but I haven't seen it working without fairly serious problems. (Besides, isn't solving this sort of pain what a pool is for? Why reinvent the wheel, and make it square to boot?) A -- Andrew Sullivan | ajs@crankycanuck.ca When my information changes, I alter my conclusions. What do you do sir? --attr. John Maynard Keynes