Received: from makus.postgresql.org (makus.postgresql.org [98.129.198.125]) by mail.postgresql.org (Postfix) with ESMTP id 39C5F91453D for ; Thu, 1 Dec 2011 12:01:00 -0400 (AST) Received: from mahout.postgresql.org ([98.129.198.123]) by makus.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1RW94F-0000RS-E0 for pgsql-bugs@postgresql.org; Thu, 01 Dec 2011 16:01:00 +0000 Received: from [204.145.120.229] (helo=wrigleys.postgresql.org) by mahout.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1RW942-0005Sj-99 for pgsql-bugs@postgresql.org; Thu, 01 Dec 2011 16:00:47 +0000 Received: from www-data by wrigleys.postgresql.org with local (Exim 4.72) (envelope-from ) id 1RW942-000531-06 for pgsql-bugs@postgresql.org; Thu, 01 Dec 2011 16:00:46 +0000 Date: Thu, 01 Dec 2011 16:00:46 +0000 Message-Id: Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Subject: BUG #6313: Deadlock reporting contains not enought details To: pgsql-bugs@postgresql.org From: dmigowski@ikoffice.de X-Pg-Spam-Score: -3.1 (---) X-Archive-Number: 201112/5 X-Sequence-Number: 31816 The following bug has been logged on the website: Bug reference: 6313 Logged by: Daniel Migowski Email address: dmigowski@ikoffice.de PostgreSQL version: 8.3.16 Operating system: Linux Description: = In my application I receive deadlocks from time to time, reported by an error message like this: ERROR: deadlock detected SQL Status:40P01 Detail:Process 30812 waits for ShareLock on transaction 278158200; blocked by process 2852. Process 2852 waits for ShareLock on transaction 278158159; blocked by process 30812. This is absolutely useless for me for the following reasons. I know which processes have participated in the deadlock, and one of them returns an error, abd I know which statement does the deadlock, but my "statement= " contains of 20 single sql statements and I don't know which lock the processes where fighting over. Could you please add information about which lock could not be granted, and what other locks have already been in place (or at least, what other locks have participated in this deadlock detection)?