Re: Why standby restores some WALs many times from archive? - Mailing list pgsql-hackers

From Michael Paquier
Subject Re: Why standby restores some WALs many times from archive?
Date
Msg-id 20171231105121.GB4109@paquier.xyz
Whole thread Raw
In response to Re: Why standby restores some WALs many times from archive?  (Sergey Burladyan <eshkinkot@gmail.com>)
List pgsql-hackers
On Sun, Dec 31, 2017 at 10:22:37AM +0300, Sergey Burladyan wrote:
> Michael Paquier <michael.paquier@gmail.com> writes:
>> Don't be surprised if you get corrupted instances or that you
>> are not able to recover up to a consistent point if you need to roll in
>> a backup.
>
> But only if archive was reboot unexpectedly, am I right?

Or unplugged, which happens quite often because of human mistakes.
Maintaining scripts that do backup and restore require quite a lot of
specialized knowledge. Solutions like barman, WAL-E or pgBackRest, or
even what in-core has with say pg_receivewal are battle-proven and have
hundreds of man-hours behind from many people. I suspect that there are
other gems hidden in your scripts. So be careful.
--
Michael

Attachment

pgsql-hackers by date:

Previous
From: Yugo Nagata
Date:
Subject: Re: Fix a Oracle-compatible instr function in the documentation
Next
From: Yugo Nagata
Date:
Subject: Re: [HACKERS] [PATCH] Lockable views