X-Original-To: pgsql-jdbc-postgresql.org@localhost.postgresql.org Received: from localhost (av.hub.org [200.46.204.144]) by postgresql.org (Postfix) with ESMTP id E2F869DCAAF for ; Tue, 6 Dec 2005 13:08:04 -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 44277-06 for ; Tue, 6 Dec 2005 13:08:03 -0400 (AST) X-Greylist: from auto-whitelisted by SQLgrey- Received: from sss.pgh.pa.us (sss.pgh.pa.us [66.207.139.130]) by postgresql.org (Postfix) with ESMTP id 7AA959DCD0E for ; Tue, 6 Dec 2005 13:08:01 -0400 (AST) Received: from sss2.sss.pgh.pa.us (tgl@localhost [127.0.0.1]) by sss.pgh.pa.us (8.13.1/8.13.1) with ESMTP id jB6H7vC3004801; Tue, 6 Dec 2005 12:07:57 -0500 (EST) To: "Vit Timchishin" cc: "pgsql-jdbc@postgresql.org" Subject: Re: More about deadlock In-reply-to: <200512061420.000000EL@dev-null> References: <200512061420.000000EL@dev-null> Comments: In-reply-to "Vit Timchishin" message dated "Tue, 06 Dec 2005 14:20:50 +0200" Date: Tue, 06 Dec 2005 12:07:57 -0500 Message-ID: <4800.1133888877@sss.pgh.pa.us> From: Tom Lane X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, score=0.002 required=5 tests=[AWL=0.002] X-Spam-Score: 0.002 X-Spam-Level: X-Archive-Number: 200512/31 X-Sequence-Number: 14362 "Vit Timchishin" writes: > Can anyone tell me what are this "transaction" locks, when they are taken and why do I have a deadlock > here. Foreign-key update deadlock maybe? If so, updating to 8.1 is probably a good solution. Previous versions took exclusive row locks on referenced rows, and so you could easily get a deadlock on those row locks. regards, tom lane