| От | Marko Tiikkaja |
|---|---|
| Тема | Re: Transaction-scope advisory locks |
| Дата | |
| Msg-id | 4D39BFE9.7030508@cs.helsinki.fi обсуждение исходный текст |
| Ответ на | Re: Transaction-scope advisory locks (Tom Lane <tgl@sss.pgh.pa.us>) |
| Список | pgsql-hackers |
On 1/20/2011 7:35 AM, Tom Lane wrote: > Marko Tiikkaja<marko.tiikkaja@cs.helsinki.fi> writes: >> This seems useful, since the xact lock would be automatically released >> if an error happens during "-- do something here" so you wouldn't need >> to worry about releasing the lock elsewhere. But I'm not sure this is >> safe. Can anyone see a problem with it? > > I think the POLA dictates that the behavior of that should be that you > now have both a transactional and a nontransactional hold on the lock; > and only the transactional hold goes away at commit. Yes, I believe that's what happens now. But I guess you answered my question too by not pointing out a huge flaw in that thinking. Regards, Marko Tiikkaja
В списке pgsql-hackers по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера