Re: Debugging deadlocks

From: Greg Stark <gsstark(at)mit(dot)edu>
To: pgsql-general(at)postgresql(dot)org
Subject: Re: Debugging deadlocks
Date: 2005-03-30 22:41:04
Message-ID: 87y8c4wydb.fsf@stark.xeocode.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general


Alvaro Herrera <alvherre(at)dcc(dot)uchile(dot)cl> writes:

> Now this can't be applied right away because it's easy to run "out of
> memory" (shared memory for the lock table). Say, a delete or update
> that touches 10000 tuples does not work. I'm currently working on a
> proposal to allow the lock table to spill to disk ...

Is that true even if I'm updating/deleting 1,000 tuples that all reference the
same foreign key? It seems like that should only need a single lock per
(sub)transaction_id per referenced foreign key.

How is this handled currently? Is your patch any worse than the current
behaviour?

--
greg

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Kemin Zhou 2005-03-30 22:46:37 join error?
Previous Message Alvaro Herrera 2005-03-30 21:47:03 Re: Debugging deadlocks