| От | Alvaro Herrera |
|---|---|
| Тема | Re: Duplicated LSN in ReorderBuffer |
| Дата | |
| Msg-id | 20190726224635.GA26091@alvherre.pgsql обсуждение исходный текст |
| Ответ на | Re: Duplicated LSN in ReorderBuffer (Masahiko Sawada <sawada.mshk@gmail.com>) |
| Ответы |
Re: Duplicated LSN in ReorderBuffer
|
| Список | pgsql-hackers |
On 2019-Jul-09, Masahiko Sawada wrote: > I think the cause of this bug would be that a ReorderBufferTXN entry > of sub transaction is created as top-level transaction. And this > happens because we skip to decode ASSIGNMENT during the state of > snapshot builder < SNAPBUILD_FULL. That explanation seems to make sense. > Instead, I wonder if we can decode ASSIGNMENT even when the state of > snapshot builder < SNAPBUILD_FULL_SNAPSHOT. That way, the > ReorderBufferTXN entries of both top transaction and sub transaction > are created properly before we decode NEW_CID. Yeah, that seems a sensible remediation to me. I would reduce the scope a little bit -- only create the assignment in the BUILDING state, and skip it in the START state. I'm not sure that it's possible to get assignments while in START state that are significant (I'm still trying to digest SnapBuildFindSnapshot). I would propose the attached. Andres, do you have an opinion on this? -- Álvaro Herrera https://www.2ndQuadrant.com/ PostgreSQL Development, 24x7 Support, Remote DBA, Training & Services
В списке pgsql-hackers по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера