> 5 авг. 2020 г., в 23:13, Heikki Linnakangas <hlinnaka@iki.fi> написал(а):
>
> A colleague of mine brought to my attention that pg_rewind is not crash safe. If it is interrupted for any reason, it
leavesbehind a data directory with a mix of data from the source and target images. If you're "lucky", the server will
startup, but it can be in an inconsistent state.
FWIW we routinely encounter cases when after unsuccessful pg_rewind databases refuses to start with "contrecord
requested"message.
I did not investigate this in detail yet, but I think it is a result of wrong redo recptr written to control file (due
tointerruption or insufficient present WAL segments).
Best regards, Andrey Borodin.