Re: BUG #13523: Unexplained deadlocks (possible race condition) - Mailing list pgsql-bugs

From Andres Freund
Subject Re: BUG #13523: Unexplained deadlocks (possible race condition)
Date
Msg-id 20150729111326.GD24218@alap3.anarazel.de
Whole thread Raw
In response to BUG #13523: Unexplained deadlocks (possible race condition)  (jack@douglastechnology.co.uk)
Responses Re: BUG #13523: Unexplained deadlocks (possible race condition)  ("Jack Douglas" <jack@douglastechnology.co.uk>)
List pgsql-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

pgsql-bugs by date:

Previous
From: "Peter J. Holzer"
Date:
Subject: Re: Segfault in pg_stat_activity
Next
From: Stuart Bishop
Date:
Subject: postgres --describe-config missing metadata