From: Andres Freund <andres@anarazel.de>
To: jack@douglastechnology.co.uk, Tom Lane <tgl@sss.pgh.pa.us>
Cc: pgsql-bugs@postgresql.org
Subject: Re: BUG #13523: Unexplained deadlocks (possible race condition)
Date: Wed, 29 Jul 2015 13:13:26 +0200
Message-ID: <20150729111326.GD24218@alap3.anarazel.de> (raw)
In-Reply-To: <20150728162823.25043.27625@wrigleys.postgresql.org>
References: <20150728162823.25043.27625@wrigleys.postgresql.org>
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-bugs>
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
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-bugs@postgresql.org
Cc: andres@anarazel.de, tgl@sss.pgh.pa.us
Subject: Re: BUG #13523: Unexplained deadlocks (possible race condition)
In-Reply-To: <20150729111326.GD24218@alap3.anarazel.de>
References: <20150728162823.25043.27625@wrigleys.postgresql.org> <20150729111326.GD24218@alap3.anarazel.de>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox