Re: Timeline switching with partial WAL records can break replica recovery
| От | Artem Gavrilov |
|---|---|
| Тема | Re: Timeline switching with partial WAL records can break replica recovery |
| Дата | |
| Msg-id | CAFPkQKzfNOf-sHpYhj_UrzsdadC-P=9s7ipS6MY1-3qjeX177A@mail.gmail.com обсуждение исходный текст |
| Ответ на | Re: Timeline switching with partial WAL records can break replica recovery (Alyona Vinter <dlaaren8@gmail.com>) |
| Ответы |
Re: Timeline switching with partial WAL records can break replica recovery
|
| Список | pgsql-hackers |
Hello Alyona,
Your solution, if I understood it correctly, violates the main idea of timelines, as it creates an "alternative" version for timeline N. It's possible that primary finished contrecord and whole segment was archived. Currently, replica always has subset of timeline N, so it's safe to start new timeline from any point. But with your timeline finalization logic it will create its own version timeline N that will conflict with already archived version. If replica will archive timeline N+1 you may end up with two different "tails" of timeline N in the same archive. Also I assume some third party tools that rely on WAL may be broken by such change.
--
В списке pgsql-hackers по дате отправления: