model-writtenrun 9169 - may be wrong, links go to the source messages. Commit-by-commit LLM analysis is in the Commits dialog.
- Ryohei Takahashi reported that slow per-tablespace fsync calls could prevent pg_basebackup from receiving data until tcp_user_timeout closed the connection, and proposed deferring synchronization until backup completion in #1.
- Michael Paquier supplied #2, replacing individual tar-file fsync calls with a final recursive directory sync and initially proposing backpatching through PostgreSQL 12.
- Takahashi confirmed the patch matched his expectations but questioned whether older releases were affected in #3; Paquier identified wal_sender_timeout as another possible trigger in #4.
- After confirming the wal_sender_timeout failure, Paquier posted #5, retaining the tar fix and disabling redundant intermediate WAL fsync calls, and expanded the proposed backpatch scope through PostgreSQL 10.
- Paquier committed #5 with its code unchanged as 522baf1484, backpatched through PostgreSQL 10, and closed the thread by reporting completion after additional checks in #6.