model-writtenrun 8104 - may be wrong, links go to the source messages. Commit-by-commit LLM analysis is in the Commits dialog.
- Grigory Smolkin reported that switching a replica to primary and back left streamed timeline history files unarchived, breaking PITR, and supplied a reproducer and notification patch in #1.
- Anastasia Lubennikova confirmed the bug but reported trouble applying the initial patch in #2; Fujii Masao questioned archiving received history files with archive_mode=on because primary and standby might share an archive in #3, then restricted notification to archive_mode=always in #4.
- David Zhang tested both versions and preferred the restricted condition in #5; Fujii explained that the original patch could leave ready files that would be archived after promotion, and proposed documenting timeline history files explicitly in #6, incorporating that clarification in #8.
- After Grigory asked whether the patch was ready for a committer in #9, Fujii added done status files for other archive modes in #10 to make history-file status handling consistent with streamed WAL, while noting that history files would not otherwise be accidentally archived later.
- David explicitly tested the final patch in #11, reporting successful feature, specification, and documentation checks and establishing that the regression failures also occurred without the patch.
- Fujii committed #10 unchanged as fd26f78231, with backports to all supported versions, and announced completion in #12; the fix was fully landed, while David's unrelated test failures remained unexplained.