Re: this is in plain text (row level locks)

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: this is in plain text (row level locks)
Дата
Msg-id 17653.1059053783@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: this is in plain text (row level locks)  (Rod Taylor <rbt@rbt.ca>)
Ответы Re: this is in plain text (row level locks)  (Sailesh Krishnamurthy <sailesh@cs.berkeley.edu>)
Re: this is in plain text (row level locks)  (Bruce Momjian <pgman@candle.pha.pa.us>)
Список pgsql-hackers
Rod Taylor <rbt@rbt.ca> writes:
> It may be best to have a locking manager run as a separate process.
> That way it could store locks in ram or spill over to disk.

Hmm, that might be workable.  We could imagine that in place of the 
HEAP_MARKED_FOR_UPDATE status bit, we have a "this row is possibly
locked" hint bit.  Only if you see the bit set do you need to query
the lock manager.  If the answer comes back that no lock is held,
you can clear the bit --- so no need for any painful "undo" stuff
after a crash, and no communication overhead in the normal case.
        regards, tom lane


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

Предыдущее
От: Bruce Momjian
Дата:
Сообщение: Re:
Следующее
От: Lee Kindness
Дата:
Сообщение: Re: libpq_r