Re: Deadlock detection - Mailing list pgsql-jdbc

From Oliver Jowett
Subject Re: Deadlock detection
Date
Msg-id 4976F543.1050704@opencloud.com
Whole thread Raw
In response to Deadlock detection  (Simon Riggs <simon@2ndQuadrant.com>)
List pgsql-jdbc
Simon Riggs wrote:

> I'm thinking of some simple bookkeeping, so that before any session
> issues a blockable call it takes note that it is doing so in a shared
> array, and clears that state again once released. A single watcher
> thread can then regularly scan the state array and see if a session is
> marked as waiting on both send and receive. Side threads are already
> used for login timeout handling, so that mechanism is already in use.
> Some loss of performance would be acceptable.

I don't see how this can work. The whole point is that if we're blocked
on send, we're *not* blocked on receive by definition.

-O

pgsql-jdbc by date:

Previous
From: Simon Riggs
Date:
Subject: Deadlock detection
Next
From: Oliver Jowett
Date:
Subject: Re: Deadlock detection