model-writtenrun 1898 - may be wrong, links go to the source messages. Commit-by-commit LLM analysis is in the Commits dialog.
- Georgy Shelkovy's bug report demonstrated pg_rewind reporting that no rewind was required, followed by a restarted standby containing 100340 rows while its new primary contained only 100000 #1.
- Heikki Linnakangas initially could not reproduce the divergence, but found that debug output omitted the source timeline history and submitted a separate diagnostic fix #2; he committed it with only a comment adjustment, explicitly leaving the reported recovery bug unresolved 49dc191bd1.
- Georgy supplied further reproduction details #3, and Heikki hypothesized that the standby's durable recovery position could precede divergence despite having received later WAL, initially considering WAL truncation or advancing minRecoveryPoint during shutdown #4.
- After requesting complete control-file data #6, Heikki used Georgy's failing and successful runs #7 #8 to confirm that the recovery position determined whether rewind was necessary; he also reproduced an assertion failure when that position preceded divergence and proposed updating the target's recovery position and timeline #9.
- Heikki submitted a separate four-patch series that exposed command output on test crashes, removed the bogus assertion with ancestor-target tests, prevented archive recovery from reading beyond timeline switchpoints, and updated minRecoveryPoint and copied source history even when no rewind was needed #10.
- Heikki explained that copying history alone passed the test but could select the wrong timeline if another higher-numbered history existed, so he preferred an explicit recovery position; he intended to commit and backpatch the assertion fix but requested review of the more complicated recovery changes and questioned their backpatch risk #10.
- More than a year later, Maxim Michkov reported that the proposed fixes generally worked but could prevent standby startup when minRecoveryPoint equaled the timeline switchpoint, and supplied a test delta reproducing that boundary case #11.
- At the thread's end, only the diagnostic fix has a confirmed landing in the supplied commit evidence 49dc191bd1; the recovery work remains unresolved in the discussion, including Maxim's question whether to advance minRecoveryPoint by one or change the startup check that examines minRecoveryPoint minus one #11.