Re: pg_rewind : feature to rewind promoted standby is broken!

Michael Paquier <michael@paquier.xyz>

From: Michael Paquier <michael@paquier.xyz>
To: Mithun Cy <mithun.cy@gmail.com>
Cc: pgsql-bugs@lists.postgresql.org, pgsql-hackers@lists.postgresql.org, michael.paquier@gmail.com, fujii@postgresql.org, Kuntal Ghosh <kuntalghosh.2007@gmail.com>, Robert Haas <robertmhaas@gmail.com>
Date: 2019-03-18T01:36:16Z
Lists: pgsql-bugs, pgsql-hackers
On Thu, Mar 14, 2019 at 09:04:41AM +0900, Michael Paquier wrote:
> Thanks for confirming, Mythun.  I'll think about the logic of this
> patch for a couple of days in the background, then I'll try to commit
> it likely at the beginning of next week.

Committed.  I have spent extra time polishing the comments to make the
filtering rules clearer when processing the source and target files,
particularly why they are useful the way they are.
--
Michael

Commits

  1. Fix pg_rewind when rewinding new database with tables included

  2. Make pg_rewind skip files and directories that are removed during server start.