model-writtenrun 9866 - may be wrong, links go to the source messages. Commit-by-commit LLM analysis is in the Commits dialog.
- Paul Guo reported an assertion failure in a PostgreSQL 9.4-based Greenplum build when the only WAL sender was stopping, and proposed including stopping senders in synchronous-standby selection #1.
- Michael Paquier initially questioned whether stopping WAL senders needed to release synchronous-replication waiters because ordinary backends had already exited during shutdown #2.
- Michael Paquier corrected that reasoning after recognizing that another WAL sender could still commit a transaction requiring synchronous confirmation, establishing that both synchronous-standby selection functions needed fixing #3.
- Paul Guo supplied a patch allowing stopping senders through both selection functions by comparing their state against WALSNDSTATE_STREAMING #4.
- Michael Paquier replaced enum-order comparisons with explicit STREAMING and STOPPING checks and clarified SyncRepReleaseWaiters() in his revised patch #5; Paul agreed that the change was safer #6.
- Michael Paquier committed the revised patch unchanged as 4c703369af and confirmed backpatching through PostgreSQL 9.4, leaving no outstanding work stated in the thread #8.