Re: Deadlock Detected (revisited) - Mailing list pgsql-general

From Stephan Szabo
Subject Re: Deadlock Detected (revisited)
Date
Msg-id 20051125003811.C67998@megazone.bigpanda.com
Whole thread Raw
In response to Deadlock Detected (revisited)  (Wes <wespvp@syntegra.com>)
Responses Re: Deadlock Detected (revisited)
List pgsql-general
On Fri, 25 Nov 2005, Wes wrote:

> I haven't seen anything to indicate that 8.x improves foreign key
> refererence locking and fixes the foreign key 'deadlock detected' issue.
> Has that been addressed in 8.1?

8.1 should be using the new shared row locks for doing the checks.  This
should fix the case mentioned.

> I've never quite understood why a READ of a record with a foreign key
> reference results in the referenced record being locked with more than a
> shared lock.

Up until now, we didn't have one to get on a per-record basis.

pgsql-general by date:

Previous
From: hubert depesz lubaczewski
Date:
Subject: Re: postmaster does not come up
Next
From: Peter Eisentraut
Date:
Subject: Re: New user questions