Re: [HACKERS] Lock freeze ? in MVCC
| От | Vadim Mikheev |
|---|---|
| Тема | Re: [HACKERS] Lock freeze ? in MVCC |
| Дата | |
| Msg-id | 372595FE.2F6BAC2D@krs.ru обсуждение исходный текст |
| Ответ на | RE: [HACKERS] Lock freeze ? in MVCC ("Hiroshi Inoue" <Inoue@tpf.co.jp>) |
| Ответы |
Re: [HACKERS] Lock freeze ? in MVCC
RE: [HACKERS] Lock freeze ? in MVCC |
| Список | pgsql-hackers |
Hiroshi Inoue wrote:
>
> Now I'm suspicious about the following code in LockResolveConflicts().
>
> /*
> * We can control runtime this option. Default is lockReadPriority=0
> */
> if (!lockReadPriority)
> {
> /* ------------------------
> * If someone with a greater priority is waiting for the
> lock,
> * do not continue and share the lock, even if we can. bjm
> * ------------------------
You're right Hiroshi - this must be changed:
if we already have some lock with priority X and new requested
lock has priority Y, Y <= X, then lock must be granted.
Also, I would get rid of lockReadPriority stuff...
Bruce, what do you think?
Vadim
В списке pgsql-hackers по дате отправления: