Re: Issue in GIN fast-insert: XLogBeginInsert + Read/LockBuffer ordering
В списке pgsql-hackers по дате отправления:
| От | Zhang Mingli |
|---|---|
| Тема | Re: Issue in GIN fast-insert: XLogBeginInsert + Read/LockBuffer ordering |
| Дата | |
| Msg-id | bf03ff05-d144-493b-b5bd-d344d4b0a52e@Spark обсуждение исходный текст |
| Ответ на | Issue in GIN fast-insert: XLogBeginInsert + Read/LockBuffer ordering (Matthias van de Meent <boekewurm+postgres@gmail.com>) |
| Список | pgsql-hackers |
In general, this works fine, except that in ginHeapTupleFastInsert we
call XLogBeginInsert() before the last of the buffers for the eventual
record was read, thus creating a path where eviction is possible in a
`begininsert_called = true` context. That breaks our current code by
being unable to evict (WAL-log) the dirtied hint pages.
PFA a patch that rectifies this issue, by moving the XLogBeginInsert()
down to where 1.) we have all relevant buffers pinned and locked, and
2.) we're in a critical section, making that part of the code
consistent with the general scheme for XLog insertion.
В списке pgsql-hackers по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера