pg_rewind enhancements - Mailing list pgsql-hackers

From RKN Sai Krishna
Subject pg_rewind enhancements
Date
Msg-id CAMVpbFN7t031cZX8kiOGhb1SL6J7vFG3Pwag_XcCmOfodCLmQg@mail.gmail.com
Whole thread Raw
Responses Re: pg_rewind enhancements
List pgsql-hackers
Hi,

While using pg_rewind, I found that it is a bit difficult to use pg_rewind as it seems to copy even the configuration files and also remove some of the files created on the old primary which may not be present on the new primary. Similarly it copies files under the data directory of the new primary which may not be needed or which possibly could be junk files.

I would propose to have a couple of new command line arguments to pg_rewind. One, a comma separated list of files which should be preserved on the old primary, in other words which shouldn't be overwritten from the new primary. Second, a comma separated list of files which should be excluded while copying files from the new primary onto the old primary.

Would like to invite more thoughts from the hackers.

Regards,
RKN

pgsql-hackers by date:

Previous
From: Fabien COELHO
Date:
Subject: Re: Commitfest 2022-03 Patch Triage Part 1b
Next
From: Robert Haas
Date:
Subject: walmethods.c is kind of a mess (was Re: refactoring basebackup.c)