Re: Timeline switching with partial WAL records can break replica recovery - Mailing list pgsql-hackers

From Alyona Vinter
Subject Re: Timeline switching with partial WAL records can break replica recovery
Date
Msg-id CAGWv16L-ofAYPQvzCo6PG-faNqU54FmmP=SJEFxM1gAQn+Dh7w@mail.gmail.com
Whole thread Raw
In response to Re: Timeline switching with partial WAL records can break replica recovery  (D Laaren <dlaaren8@gmail.com>)
Responses Re: Timeline switching with partial WAL records can break replica recovery
List pgsql-hackers
Hi hackers,

I've found an error in my previous patch and have attached a fixed version.

I'd also like to clarify the timeline switching bug scenario that this patch fixes:
The issue occurs in this cluster configuration:
[ master ] → [ cascade replica ] → [ replica ]

When the master is lost and the cascade replica is promoted (as described above), the downstream replica may enter an infinite loop during recovery instead of properly following the new timeline.
--
Regards,
Alyona Vinter
Attachment

pgsql-hackers by date:

Previous
From: shveta malik
Date:
Subject: Re: Conflict detection for update_deleted in logical replication
Next
From: Alyona Vinter
Date:
Subject: Re: Timeline switching with partial WAL records can break replica recovery