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

Michael Paquier <michael@paquier.xyz>

From: Michael Paquier <michael@paquier.xyz>
To: Fujii Masao <masao.fujii@gmail.com>
Cc: "Tsunakawa, Takayuki" <tsunakawa.takay@jp.fujitsu.com>, "pgsql-hackers@postgresql.org" <pgsql-hackers@postgresql.org>
Date: 2018-03-28T02:24:06Z
Lists: pgsql-hackers
On Wed, Mar 28, 2018 at 04:45:49AM +0900, Fujii Masao wrote:
> The patch looks good to me! Barring objection, I will commit it
> and back-patch to 9.5 where pg_rewind was added.

Thanks in advance!  I just eyeballed the patch again and I don't see
issues with what's used here.  The thing should apply smoothly back to
9.5, of course let me know if you need help or an extra pair of eyes.
--
Michael

Commits

  1. Fix handling of files that source server removes during pg_rewind is running.