Re: How to recover correctly master and replica using backup made by pg_basebackup?

2025-03-19 Thread Evgeniy Ratkov
On 07/11/2024 22:19, Evgeniy Ratkov wrote:Hello.I try to use pg_basebackup to make backup and recover master and replicafrom it.I recover master with action "promote". Next, I recover replica from thesamebackup with action "shutdown". After it, I start replica with con

Re: BUG #18575: Sometimes pg_rewind mistakenly assumes that nothing needs to be done.

2025-03-18 Thread Evgeniy Ratkov
On 08/09/2024 15:26, Heikki Linnakangas wrote: > 2. Independently of pg_rewind: When you start PostgreSQL, it will first > try to recover all the WAL it has locally in pg_wal. That goes wrong if > you have set a recovery target TLI. For example, imagine this situation: > > - Recovery target TLI i

How to recover correctly master and replica using backup made by pg_basebackup?

2024-11-07 Thread Evgeniy Ratkov
Hello. I try to use pg_basebackup to make backup and recover master and replica from it. I recover master with action "promote". Next, I recover replica from the same backup with action "shutdown". After it, I start replica with configured connection and replication slot to the master. I get e