Re: Deadlock Detected (revisited)

From: Stephan Szabo <sszabo(at)megazone(dot)bigpanda(dot)com>
To: Wes <wespvp(at)syntegra(dot)com>
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: Deadlock Detected (revisited)
Date: 2005-11-25 08:40:32
Message-ID: 20051125003811.C67998@megazone.bigpanda.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: 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.

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Peter Eisentraut 2005-11-25 08:58:59 Re: New user questions
Previous Message hubert depesz lubaczewski 2005-11-25 07:52:41 Re: postmaster does not come up