Re: Debugging deadlocks

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: Debugging deadlocks
Дата
Msg-id 779.1112414556@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: Debugging deadlocks  (Alvaro Herrera <alvherre@dcc.uchile.cl>)
Ответы Re: Debugging deadlocks  (Greg Stark <gsstark@mit.edu>)
Re: Debugging deadlocks  (Alvaro Herrera <alvherre@dcc.uchile.cl>)
Список pgsql-general
Alvaro Herrera <alvherre@dcc.uchile.cl> writes:
> On Fri, Apr 01, 2005 at 10:14:07PM -0500, Paul Tillotson wrote:
>> ...

> Well, at that point you need to take a lock in order to be able to
> manage locks.  Managing not to step on your own feet in that scenario
> is complex, to say the least, if not downright impossible.

I looked at Paul's first message and thought "nah, that won't work
because ... because ... hmm ... hmmm ..."

We currently store tuple locks on the same page as the tuples (ie, in
the tuple headers) and need no extra locks to do so.  Certainly it
still has to have a spill mechanism, but the thought that is attractive
to me is that until you are forced to spill, you do not have to take any
system-wide lock, only a page-level lock.  So it could have very good
average performance.

> Another problem with this approach is that it would be practically
> impossible for a process to release all its locks when it finishes.

There is no explicit release of tuple-level locks in the current setup.
Need it be different in Paul's idea?

            regards, tom lane

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

Предыдущее
От: Alvaro Herrera
Дата:
Сообщение: Re: plPHP in core?
Следующее
От: "Marc G. Fournier"
Дата:
Сообщение: Re: [HACKERS] plPHP in core?