Re: Debugging deadlocks

Поиск
Список
Период
Сортировка
От Guy Rouillier
Тема Re: Debugging deadlocks
Дата
Msg-id CC1CF380F4D70844B01D45982E671B2348E79A@mtxexch01.add0.masergy.com
обсуждение исходный текст
Ответ на Debugging deadlocks  ("Guy Rouillier" <guyr@masergy.com>)
Ответы Re: Debugging deadlocks
Список pgsql-general
Alvaro Herrera wrote:
>
> 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 ...

While not always true, in many cases the cardinality of the referenced
(parent) table is small compared to that of the referencing (child)
table.  Does locking require a separate lock record for each tuple in
the child table, or just one for each tuple in the parent table with a
reference count?  For example, the scenario I started this thread with
had two child tables referencing rows in a common parent table.  For a
given parent tuple, a single "prevent write" lock with a reference count
would seem sufficient.

--
Guy Rouillier


В списке pgsql-general по дате отправления:

Предыдущее
От: "Chandra Sekhar Surapaneni"
Дата:
Сообщение: Help with converting hexadecimal to decimal
Следующее
От: "Dann Corbit"
Дата:
Сообщение: Re: your thoughts on a crazy idea please