model-writtenrun 6969 - may be wrong, links go to the source messages. Commit-by-commit LLM analysis is in the Commits dialog.
- Xuneng Zhou proposed WALRCV_CONNECTING to distinguish startup from actual WAL reception, initially switching to STREAMING when received WAL was flushed #1.
- Noah Misch warned that incompatible WAL could still briefly produce a misleading STREAMING status #2, prompting Xuneng to move the transition into the startup process after it accepted a valid streamed record #5.
- Noah proposed observing replay progress from the receiver and identified the idle-primary case, where waiting for new WAL could leave CONNECTING indefinitely #6; Xuneng consequently submitted two alternatives with an additional CONNECTED state #10.
- Rahila Syed questioned tying receiver status to replay progress and suggested switching to STREAMING immediately after successful walrcv_startstreaming() #11, while Xuneng initially favored finer-grained monitoring states #12.
- After a several-week gap, Xuneng updated both alternatives to allow CONNECTING and CONNECTED receivers to enter WAITING when a stream ended without applied WAL #13.
- Michael Paquier rejected the additional replay coordination and CONNECTED state, recommending one CONNECTING state that ends when replication successfully starts #14; Xuneng accepted that direction and implemented it with documentation #15 #18.
- Michael also proposed exposing startup-process recovery data independently through SQL #14 #16, and Xuneng agreed to develop that as separate work #15.
- Michael requested a complete, separately committable list of existing receiver statuses #19, and Xuneng split the submission into documentation and CONNECTING patches #20.
- Chao Li reviewed both patches, suggesting clearer wording and upstream-server terminology while identifying a race where the new STREAMING assignment could overwrite STOPPING #21.
- Michael committed the documentation portion as 1a1e733b62, removing the unobservable stopped status, reordering the list and fixing markup #22; Xuneng then resubmitted the remaining feature with Chao's corrections and explicit shutdown handling #24.
- Michael objected to adding new fast-exit paths and recommended preserving existing shutdown control flow #26; Chao agreed #27, and Xuneng retained only a conditional CONNECTING-to-STREAMING update #28.
- Michael tested receiver control with injection points and primary_conninfo reloads, then committed the final patch with comment edits as a36164e746 #29.
- With both receiver changes landed, Xuneng continued the separate recovery-monitoring proposal #30 and, at Michael's request #31, moved its patches into thread #53186 by the final message here #32.
- The later pg_stat_recovery commit 01d485b142 credits the SQL-monitoring idea developed here #14 #16, but its implementation came from the later submission #617156 in thread #53186, correcting the previous attribution to this thread's discussion.