Re: [bug fix] pg_rewind creates corrupt WAL files, and the standbycannot catch up the primary

Поиск
Список
Период
Сортировка
От Justin Pryzby
Тема Re: [bug fix] pg_rewind creates corrupt WAL files, and the standbycannot catch up the primary
Дата
Msg-id 20180311145632.GP10417@telsasoft.com
обсуждение исходный текст
Ответ на Re: [bug fix] pg_rewind creates corrupt WAL files, and the standbycannot catch up the primary  (Michael Paquier <michael@paquier.xyz>)
Ответы Re: [bug fix] pg_rewind creates corrupt WAL files, and the standbycannot catch up the primary  (Michael Paquier <michael@paquier.xyz>)
Список pgsql-hackers
On Sun, Mar 11, 2018 at 11:04:01PM +0900, Michael Paquier wrote:
> On Fri, Mar 09, 2018 at 08:22:49AM +0000, Tsunakawa, Takayuki wrote:
> > Thanks for reviewing.  All done.
> 
> Thanks.  Please be careful with the indentation of the patch.  Attached
> is a slightly-updated version with a small modification in
> remove_target_file to make the code cleaner, a proposal of commit
> message and pgindent applied on the code.  I am switching that as ready
> for committer.
> --
> Michael

> From 62950c615d87e3e58998f295ce446eb5c80707e4 Mon Sep 17 00:00:00 2001
> From: Michael Paquier <michael@paquier.xyz>
> Date: Sun, 11 Mar 2018 22:49:55 +0900
> Subject: [PATCH] Fix handling of removed files on target server with pg_rewind
> 
> After processing the filemap to build the list of chunks that will be
> fetched from the source to rewing the target server, it is possible that
> a file which was previously processed is removed from the source.  A
> simple example of such an occurence is a WAL segment which gets recycled
> on the target in-between.  When the filemap is processed, files not
> categorized as relation files are first truncated to prepare for its
> full copy of which is going to be taken from the source, divided into a
> set of junks.

Hopefully a set of CHUNKS not JUNKS ?

Justin


В списке pgsql-hackers по дате отправления:

Предыдущее
От: Kuntal Ghosh
Дата:
Сообщение: Inconsistent behavior in serializable snapshot
Следующее
От: David Rowley
Дата:
Сообщение: Re: ALTER TABLE ADD COLUMN fast default