| От | Tom Lane |
|---|---|
| Тема | Re: Minor fix in lwlock.c |
| Дата | |
| Msg-id | 25640.1112932046@sss.pgh.pa.us обсуждение |
| Ответ на | Minor fix in lwlock.c ("Qingqing Zhou" <zhouqq@cs.toronto.edu>) |
| Список | pgsql-patches |
"Qingqing Zhou" <zhouqq@cs.toronto.edu> writes:
> The chance that num_held_lwlocks is beyond MAX_SIMUL_LWLOCKS is similar to
> the chance that failed to grasp a spinlock in 1 minute, so they should be
> treated in the same way. This is mainly to prevent programming error (e.g.,
> forget to release the LWLocks).
Hmm ... yeah, it's not too hard to imagine a bug leading to trying to
grab content locks on more than 100 buffers, for example. Patch
applied, although I reduced the severity from FATAL to ERROR. I don't
see any reason to think we'd be unable to recover normally from such a
bug --- do you?
regards, tom lane
В списке pgsql-patches по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера