I'm planning some changes in lmgr...

Поиск
Список
Период
Сортировка
От Vadim Mikheev
Тема I'm planning some changes in lmgr...
Дата
Msg-id 372B1C70.9CD98F6E@krs.ru
обсуждение исходный текст
Ответы RE: [HACKERS] I'm planning some changes in lmgr...  ("Hiroshi Inoue" <Inoue@tpf.co.jp>)
Список pgsql-hackers
but have no time to do them today and tomorrow -:(.

1. Add int waitMask to LOCK to speedup checking in LockResolveConflicts:  if lock requested conflicts with lock
requestedby any waiter   (and we haven't any lock on this object) -> sleep
 

2. Add int holdLock (or use prio) to PROC to let other know  what locks we hold on object (described by PROC->waitLock)
while we're waiting for lock of PROC->token type on  this object.
 
  I assume that holdLock & token will let us properly   and efficiently order waiters in LOCK->waitProcs queue  (if we
don'thold any lock on object -> go after   all waiters with holdLock > 0, etc etc etc).
 

Comments?

Vadim


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

Предыдущее
От: Vadim Mikheev
Дата:
Сообщение: DeadLockCheck...
Следующее
От: Tom Lane
Дата:
Сообщение: Re: [HACKERS] A select with aggretion is failing, still subtle problems with aggregation