Re: Should heap_update/heap_delete hold buffer locks while toasting?
В списке pgsql-hackers по дате отправления:
| От | Jan Wieck |
|---|---|
| Тема | Re: Should heap_update/heap_delete hold buffer locks while toasting? |
| Дата | |
| Msg-id | 200101081837.NAA08409@jupiter.jw.home обсуждение исходный текст |
| Ответ на | Should heap_update/heap_delete hold buffer locks while toasting? (Tom Lane <tgl@sss.pgh.pa.us>) |
| Список | pgsql-hackers |
Tom Lane wrote: > The way that heap_update() and heap_delete() are currently coded, they > hold the buffer context lock on the buffer containing the old tuple > while they invoke heap_tuple_toast_attrs(). This strikes me as at least > inefficient and at worst a source of deadlock. Is it possible to avoid > holding the buffer lock while doing the TOAST manipulations? Since the TOAST table access is doing it's own locking on the TOAST tables, I think it'd be possible to move it outside of the buffer lock. Jan -- #======================================================================# # It's easier to get forgiveness for being wrong than for being right. # # Let's break this rule - forgive me. # #================================================== JanWieck@Yahoo.com #
В списке pgsql-hackers по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера