model-writtenrun 891 - may be wrong, links go to the source messages. Commit-by-commit LLM analysis is in the Commits dialog.
- Chao Li demonstrated that a stalled primary connection left pg_stat_wal_receiver empty and proposed exposing PID and CONNECTING status while keeping other columns NULL in #1.
- Michael Paquier replaced that approach in #2, preserving ready_to_display as the SQL visibility gate while clearing connection details and enabling display before walrcv_connect(), then filling those details after connection establishment.
- Chao's tests raised concerns about initialized timestamps appearing as message times in #3 and #5; Michael explained in #4 and #6 that these values already described receiver initialization and could remain visible.
- Chao accepted Michael's implementation and proposed a documentation clarification in #7, but that documentation addition was absent from the final series and both commits, without an explicit explanation in the thread.
- Further investigation uncovered raw conninfo exposure when reusing a waiting receiver in #8; Michael confirmed in #9 that this was a separate, longstanding bug requiring backpatching and agreed that receiver states should remain visible.
- Chao supplied the initially omitted fix and test attachments in #10, restricting raw conninfo copying to newly launched receivers; his report in #8 said the regression test and make check-world passed with the fix.
- The final series in #11 combined Michael's unchanged CONNECTING patch with Chao's conninfo fix, refining the latter's regression test to retain pg_stat_wal_receiver visibility checks.
- Michael committed the first patch from #11 as 7f469097c7 with unchanged code, then committed the second as c37b38806a with light comment and test edits and backpatched it through PostgreSQL 14, announcing both applications in #12.
- The thread ended with both implementation patches landed; Xuneng Zhou's post-commit review in #15 supported retaining the visibility gate and acknowledged that timestamp interpretation risks predated these changes.