Re: Reducing likelihood of deadlocks (was referential Integrity and SHARE locks)

From: Marc Munro <marc(at)bloodnok(dot)com>
To: Csaba Nagy <nagy(at)ecircle-ag(dot)com>
Cc: postgres hackers <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: Reducing likelihood of deadlocks (was referential Integrity and SHARE locks)
Date: 2007-02-08 17:44:43
Message-ID: 1170956683.21038.36.camel@bloodnok.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

On Thu, 2007-08-02 at 18:06 +0100, Csaba Nagy wrote:

> The problem is that eliminating the deadlock is still not the complete
> cake... the interlocking still remains, possibly leading to degraded
> performance on high contention on very common parent rows. The real
> solution would be when an update on the parent table's non-referenced
> fields is not interlocking at all with updates of the child rows... and
> I think there were some proposals to do that.

Agreed. There are two issues here, unnecessary blocking and deadlock.
These can be tackled separately. My proposal deals only with the
deadlock issue.

Even if if contention is reduced, for instance by implementing
column-level locking, there will still be the potential for deadlock
arising from inconsistent ordering of locks. I continue to stand by my
proposal.

__
Marc

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message Peter Eisentraut 2007-02-08 17:54:33 Re: Chatter on DROP SOMETHING IF EXISTS
Previous Message Csaba Nagy 2007-02-08 17:06:43 Re: Reducing likelihood of deadlocks (was referential Integrity and SHARE locks)