X-Original-To: pgsql-sql-postgresql.org@localhost.postgresql.org Received: from localhost (av.hub.org [200.46.204.144]) by postgresql.org (Postfix) with ESMTP id 8AFBF9DC85F for ; Thu, 2 Feb 2006 10:19:22 -0400 (AST) Received: from postgresql.org ([200.46.204.71]) by localhost (av.hub.org [200.46.204.144]) (amavisd-new, port 10024) with ESMTP id 59699-04 for ; Thu, 2 Feb 2006 10:19:25 -0400 (AST) X-Greylist: from auto-whitelisted by SQLgrey- Received: from mail.logix-tt.com (serval.logix-tt.com [213.239.221.42]) by postgresql.org (Postfix) with ESMTP id 024279DC859 for ; Thu, 2 Feb 2006 10:19:18 -0400 (AST) Received: from kingfisher.intern.logix-tt.com (Md470.m.pppool.de [89.49.212.112]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mail.logix-tt.com (Postfix) with ESMTP id 8AF0A244046; Thu, 2 Feb 2006 15:19:25 +0100 (CET) Received: from [127.0.0.1] (localhost [127.0.0.1]) by kingfisher.intern.logix-tt.com (Postfix) with ESMTP id 4FF2B181C209A; Thu, 2 Feb 2006 15:19:26 +0100 (CET) Message-ID: <43E214EE.3090005@logix-tt.com> Date: Thu, 02 Feb 2006 15:19:26 +0100 From: Markus Schaber Organization: Logical Tracking and Tracing International AG, Switzerland User-Agent: Debian Thunderbird 1.0.7 (X11/20051017) X-Accept-Language: en-us, en MIME-Version: 1.0 To: Andrew Sullivan Cc: pgsql-sql@postgresql.org Subject: Re: Changing the transaction isolation level within the stored References: <1138198348.8828.32.camel@localhost.localdomain> <43D79132.9050900@logix-tt.com> <1138259463.16164.4.camel@localhost.localdomain> <43D8999E.9090907@logix-tt.com> <20060126113902.GB3995@phlogiston.dyndns.org> <43D8C5CF.6030000@logix-tt.com> <20060126163902.GB4836@phlogiston.dyndns.org> In-Reply-To: <20060126163902.GB4836@phlogiston.dyndns.org> X-Enigmail-Version: 0.93.0.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, score=0.127 required=5 tests=[AWL=0.127] X-Spam-Score: 0.127 X-Spam-Level: X-Archive-Number: 200602/20 X-Sequence-Number: 24030 Hi, Andreq, Andrew Sullivan wrote: > I think you don't have a clear idea of what locks are necessary for > updates. Write operations on a row must block other write operations > on the same row. If more than one transaction needs the same kinds > of locks on two different tables, but attempts to get those locks in > the opposite order, you are all but guaranteed a deadlock. MVCC > helps, but it can't avoid locking the same data when that data is > being updated. You're right, I was mislead from my memory. Sorry for the confusion I brought to this issue. Markus -- Markus Schaber | Logical Tracking&Tracing International AG Dipl. Inf. | Software Development GIS Fight against software patents in EU! www.ffii.org www.nosoftwarepatents.org