Re: Shared row locking

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: Shared row locking
Дата
Msg-id 1399.1104465605@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: Shared row locking  (Manfred Koizar <mkoi-pg@aon.at>)
Список pgsql-hackers
Manfred Koizar <mkoi-pg@aon.at> writes:
> On Thu, 30 Dec 2004 13:36:53 -0500, Tom Lane <tgl@sss.pgh.pa.us> wrote:
>> Certainly not; indexes depend on locks, not vice versa.  You'd not be
>> able to do that without introducing an infinite recursion into the
>> system design.

> Wouldn't you have to face the same sort of problems if you spill part of
> the lock table to disk?  While you do I/O you have to hold some lock.

See LWLocks ... or spinlocks underneath those.  But (some) operations on
tables and indexes make use of heavyweight locks.
        regards, tom lane


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

Предыдущее
От: Sergey Anpilov
Дата:
Сообщение: hardcoded decimal point '.'
Следующее
От: lsunley@mb.sympatico.ca
Дата:
Сообщение: Re: RC3 in ... ~12 hours ...