model-writtenrun 1416 - may be wrong, links go to the source messages. Commit-by-commit LLM analysis is in the Commits dialog.
- Alena Vinter opened the thread with a recovery-failure report, a reproducer, and a patch using ALTER SYSTEM RESET to remove recovery targets left behind by pg_createsubscriber #1.
- Hayato Kuroda requested restoration consistent with WriteRecoveryConfig() and integrated TAP coverage, while Michael Paquier objected to SQL resets and duplicated parameter lists; Alena responded with file-content restoration helpers and tests #2 #3 #4.
- Hayato found a compilation error, which Alena corrected through a short sequence of replacement attachments and a rebase #5 #6 #7 #8.
- Alexander Korotkov removed the now-unnecessary parameter-array refactoring, reordered the helper patch ahead of its callers, and tidied the tests; Michael agreed with the simplification #9 #10.
- Michael requested documented file manipulation and cleanup on failure, and discouraged a separate pre-flight check for interrupted runs; Alena initially added warnings and documentation rather than automatic failure cleanup #10 #12 #13.
- Michael explained that pg_rewind and failures before the system-identifier change made automatic cleanup valuable, prompting Alena to add restoration to the exit callback and make helper failures nonfatal #14 #15.
- Michael, Hayato, and Ilyasov Ian identified unsafe fixed-size reads, redundant state flags, and unnecessary connection-dependent work; Ian also reproduced the failure and verified the patch, and Alena consolidated restoration in the exit callback using safer reads #16 #19 #20 #22.
- The version-handling discussion also exposed misleading control-file corruption diagnostics when pg_createsubscriber was used across major versions #21.
- Michael proposed dropping the restoration helpers and placing temporary settings in a separately included file that could be renamed on exit, preserving evidence for debugging without retaining active recovery targets #23.
- Robert Haas questioned whether simply forcing a converted primary back into recovery was a supported scenario, while Alena instead pursued truncating postgresql.auto.conf and renaming saved recovery.conf files #24 #25 #26.
- Alexander argued that removing temporary settings was worthwhile independently of the original reproducer, and Robert accepted that rationale while requesting a test involving a standby created from the converted subscriber's backup #27 #28.
- Alexander favored retaining a configuration file because verbose output might be unavailable, while Alena initially opposed leaving extra files; the next available submission retained truncation but added the backup-derived standby test that Robert preferred #29 #30 #31 #32.
- Michael reiterated that legacy recovery.conf handling was unnecessary, and Robert agreed that the work could land as a usability improvement without backpatching #33 #34 #35.
- Andrey Rudometov supplied a frontend durable_rename() fix and later reinforced the case for retaining a separate configuration file; Michael confirmed the API issue and advised against duplicate error reporting #36 #37 #38.
- Alena ultimately adopted the included-file design, writing recovery settings into pg_createsubscriber.conf and renaming it to pg_createsubscriber.conf.disabled on exit, abandoning truncation and legacy-file restoration #40.
- Michael merged the documentation with the code, added assertions for the disabled file, corrected formatting and diagnostics, and verified that the new standby test failed without the implementation #41.
- Michael committed 639352d904 from #41 after restoring safe dry-run LSN handling, retaining Alena's authorship and treating the change as an improvement for the development branch #42.
- Hayato then traced fairywren buildfarm timeouts to node K being started with an external pg_ctl command, leaving its PID untracked by the test framework, and supplied an explicit shutdown fix #44.
- Michael applied Hayato's fix as a7c63e4860, moving the shutdown before the other cleanup calls and adding a comment explaining why it was necessary #46.
- The thread ended with Michael confirming that fairywren was green again after a7c63e4860, with both the redesign and its test-stability fix landed #47.