Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1ZKPIu-0001S2-0R for pgsql-bugs@arkaria.postgresql.org; Wed, 29 Jul 2015 11:13:44 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84) (envelope-from ) id 1ZKPIt-000824-23 for pgsql-bugs@arkaria.postgresql.org; Wed, 29 Jul 2015 11:13:43 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84) (envelope-from ) id 1ZKPIs-00081o-Hv for pgsql-bugs@postgresql.org; Wed, 29 Jul 2015 11:13:42 +0000 Received: from mail.anarazel.de ([217.115.131.40]) by magus.postgresql.org with esmtp (Exim 4.84) (envelope-from ) id 1ZKPIo-0004Qq-WA for pgsql-bugs@postgresql.org; Wed, 29 Jul 2015 11:13:41 +0000 Received: from intern.anarazel.de (unknown [46.196.250.227]) (Authenticated sender: andres@anarazel.de) by mail.anarazel.de (Postfix) with ESMTPSA id 00F9B860002; Wed, 29 Jul 2015 13:13:37 +0200 (CEST) Date: Wed, 29 Jul 2015 13:13:26 +0200 From: Andres Freund To: jack@douglastechnology.co.uk, Tom Lane Cc: pgsql-bugs@postgresql.org Subject: Re: BUG #13523: Unexplained deadlocks (possible race condition) Message-ID: <20150729111326.GD24218@alap3.anarazel.de> References: <20150728162823.25043.27625@wrigleys.postgresql.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20150728162823.25043.27625@wrigleys.postgresql.org> X-Pg-Spam-Score: -5.6 (-----) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-bugs Precedence: bulk Sender: pgsql-bugs-owner@postgresql.org On 2015-07-28 16:28:23 +0000, jack@douglastechnology.co.uk wrote: > 2015-07-28 16:46:19 BST ERROR: deadlock detected > 2015-07-28 16:46:19 BST DETAIL: Process 9394 waits for ExclusiveLock on > relation 65605 of database 12141; blocked by process 9393. > Process 9393 waits for ExclusiveLock on relation 65605 of database > 12141; blocked by process 9394. > Process 9394: select f_test('blah') > Process 9393: select f_test('blah') > 2015-07-28 16:46:19 BST HINT: See server log for query details. > 2015-07-28 16:46:19 BST CONTEXT: SQL function "f_test" statement 1 > 2015-07-28 16:46:19 BST STATEMENT: select f_test('blah') I am wondering if the deadlock reports would be a bit easier to debug if we didn't just say "blocked by process 9394", but also in which lockmode it's held currently. Greetings, Andres Freund -- Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-bugs