| От | Tom Lane |
|---|---|
| Тема | Re: row level lock and table level locks |
| Дата | |
| Msg-id | 27275.1062992981@sss.pgh.pa.us обсуждение исходный текст |
| Ответ на | Re: row level lock and table level locks (Alvaro Herrera <alvherre@dcc.uchile.cl>) |
| Список | pgsql-hackers |
Alvaro Herrera <alvherre@dcc.uchile.cl> writes:
> Now, if a subtransaction has got a lock on some tuple, and another
> transaction tree tries to grab the lock on that tuple, it should have to
> wait for the entire transaction tree to finish. But what if the
> subtransaction that got the lock aborts? Maybe the waiter could awake
> at that point.
Yes. At present, a transaction that aborts will *immediately* drop all
its locks (and other shared resources), even before waiting for its
client to acknowledge the failure. Seems to me the same should hold
true of subtransactions.
regards, tom lane
В списке pgsql-hackers по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера