Re: Simplify standby state machine a bit in WaitForWALToBecomeAvailable()
Вложения
В списке pgsql-hackers по дате отправления:
| От | Michael Paquier |
|---|---|
| Тема | Re: Simplify standby state machine a bit in WaitForWALToBecomeAvailable() |
| Дата | |
| Msg-id | ZAWcs2oy7MkU5bPC@paquier.xyz обсуждение |
| Ответ на | Re: Simplify standby state machine a bit in WaitForWALToBecomeAvailable() (Bharath Rupireddy <bharath.rupireddyforpostgres@gmail.com>) |
| Ответы |
Re: Simplify standby state machine a bit in WaitForWALToBecomeAvailable()
|
| Список | pgsql-hackers |
On Sat, Mar 04, 2023 at 09:47:05AM +0530, Bharath Rupireddy wrote: > Okay, here's a patch attached. Thanks. + * When source == XLOG_FROM_ANY, this function first searches for the segment + * with a TLI in archive first, if not found, it searches in pg_wal. This way, + * if there is a WAL segment with same passed-in segno but different TLI + * present in both the archive and pg_wal, it prefers the one with higher TLI. + * The reason for this is that if for example we try to do archive recovery to + * timeline 2, which branched off timeline 1, but the WAL for timeline 2 is not + * archived yet, we would replay past the timeline switch point on timeline 1 + * using the archived WAL segment, before even looking timeline 2's WAL + * segments in pg_wal. This is pretty much what the commit has mentioned. The first half provides enough details, IMO. -- Michael
В списке pgsql-hackers по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера