Re: pgsql: Repair a low-probability race condition identified by Qingqing

Поиск
Список
Период
Сортировка
От Qingqing Zhou
Тема Re: pgsql: Repair a low-probability race condition identified by Qingqing
Дата
Msg-id e21mbf$ktr$1@news.hub.org
обсуждение исходный текст
Ответ на pgsql: Repair a low-probability race condition identified by Qingqing  (tgl@postgresql.org (Tom Lane))
Ответы Re: pgsql: Repair a low-probability race condition identified by Qingqing  (Tom Lane <tgl@sss.pgh.pa.us>)
Список pgsql-committers
"Tom Lane" <tgl@postgresql.org> wrote
> Rather than try to prevent the race condition directly, it seems best
> to make the lock manager robust against leftover wakeups, by having it
> repeat waiting on the semaphore if the lock has not actually been granted
> or denied yet.
>

IMHO the lmgr will not be the murdered by the leftover wakeup, but what
about the next LockBufferForCleanUp()? It is possible that the the leftover
wakeup is still there (e.g. get the lock without any waiting) and it will
wake up prematurely?

Regards,
Qingqing



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

Предыдущее
От: momjian@postgresql.org (Bruce Momjian)
Дата:
Сообщение: pgsql: Document that errors are not output by log_statement (was they
Следующее
От: Tom Lane
Дата:
Сообщение: Re: pgsql: Repair a low-probability race condition identified by Qingqing