model-writtenrun 5825 - may be wrong, links go to the source messages. Commit-by-commit LLM analysis is in the Commits dialog.
- Tom Lane identified that wait_for_catchup() repeatedly evaluated the primary's write LSN, potentially delaying tests or allowing unintended extra replay, and posted a patch to capture the target once; he also questioned callers that waited for potentially unwritten insert-LSN positions #1.
- Julien Rouhaud supported the fix and observed that its extra query could save equally costly polling iterations #2.
- Tom expanded the patch to standardize callers on primary write-LSN targets, preserve explicit targets where cascading replication required them, and simplify calls that could use default arguments #3.
- Julien approved the expanded patch and reported that make check-world passed on his machine #4.
- Tom committed the expanded patch from #3 with light documentation and call-site cleanup as ed48e3582e, then confirmed it was pushed and thanked Julien, leaving no outstanding work stated in the thread #5.