Re: Startup PANIC on standby promotion due to zero-filled WAL segment - Mailing list pgsql-hackers

From Alena Vinter
Subject Re: Startup PANIC on standby promotion due to zero-filled WAL segment
Date
Msg-id CAGWv16JP_DJfRnBPC+XomZPtgi+0KB7SZjULGH_5J6ZN9cTi4Q@mail.gmail.com
Whole thread Raw
In response to Re: Startup PANIC on standby promotion due to zero-filled WAL segment  (Alena Vinter <dlaaren8@gmail.com>)
List pgsql-hackers
I revisited the issue and examined the problem and the proposed solution in more depth. It’s now clear to me why the approach won’t work: if multiple timelines are discovered at once (for example, if a replica is stopped, a standby is promoted several times, and only then the replica resumes replication), the current design may copy part of an earlier timeline from the wrong predecessor into the current segment.

I’ll get back with a more correct solution soon. In the meantime, suggestions are welcome!
---
Alena Vinter

pgsql-hackers by date:

Previous
From: "Hayato Kuroda (Fujitsu)"
Date:
Subject: RE: Simplify code building the LR conflict messages
Next
From: Dilip Kumar
Date:
Subject: Re: Proposal: Conflict log history table for Logical Replication