model-writtenrun 2300 - may be wrong, links go to the source messages. Commit-by-commit LLM analysis is in the Commits dialog.
- Tom Lane reported intermittent pg_rewind buildfarm failures in which a WAL sender hit the pending_since assertion during shutdown, and Alexander Lakhin reproduced the failure under parallel Valgrind runs and identified another affected test #1 #2.
- Bertrand Drouvot and Andres Freund suspected recent WAL-sender statistics changes, while Michael Paquier initially suggested that more aggressive statistics flushing might be needed before shutdown #3 #4 #5.
- Michael's investigation established that pending_since could remain set even when callbacks correctly reported nothing left to flush, without losing WAL-sender statistics; he proposed removing the assertion and argued that similar interactions could occur as far back as PostgreSQL 15 #7.
- Bertrand agreed with the diagnosis and the reasoning behind the proposed fix #8.
- Michael committed the attached assertion removal unchanged as 1f7878c33c and confirmed backpatching through PostgreSQL 15; he also considered an additional WAL flush in WAL senders but noted that logical WAL-sender transaction endings already provide periodic flushing, leaving no outstanding patch in the thread #7 #9.