> In short, I disagree with what you are doing here: we should take the
> extra step and clean up anything that's been created by the tool when > we know we can safely do so
I got your point, thanks for pointing to the `pg_rewind` case. I've attached a new version of the patches. I've changed `ReplaceRecoveryConfig` a little bit -- now it returns false in case of an error instead of exiting.