Re: Debugging deadlocks

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

> Would it work for an updater, who finds that the locks list (currently
> located in the middle of the empty space) is "in the way" of a new tuple
> that he wants to insert, to take some kind of lock, move the whole list
> up or down (spilling some of these locks to the disk if no more space is
> available), and release it again?

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.

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

No, we have to build this infrastructure purely using LWLocks, which
means, no normal relations involved.

--
Alvaro Herrera (<alvherre[@]dcc.uchile.cl>)
"The Postgresql hackers have what I call a "NASA space shot" mentality.
 Quite refreshing in a world of "weekend drag racer" developers."
(Scott Marlowe)

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

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