model-writtenrun 2131 - may be wrong, links go to the source messages. Commit-by-commit LLM analysis is in the Commits dialog.
- Tom Lane traced intermittent three-minute subscription-test delays to consumed latch notifications and failed worker launches that did not shorten the launcher's sleep, then submitted fixes alongside safer worker-state access and earlier tablesync timestamp assignment #1.
- Amit Kapila supported the fixes, linked earlier proposals involving caller-side latch restoration or separate latches, and questioned the effect of timestamp placement on retry timing #2.
- Ashutosh Bapat confirmed that reading worker->in_use after unlocking could mistake a reused slot for a successful launch, and supported the tablesync adjustment for consistency while clarifying that its hash entry belongs to a table #3.
- Tom defended restoring the existing latch because both waiting loops must service interrupts, left replacing polling with signaling as a possible future improvement, and proposed explicitly discarding the tablesync launch result; he also acknowledged that the timestamp move was precautionary because the hash table was currently process-local #4 #5.
- Tom committed the patch with the explicit (void) cast and target-codebase adjustments as 87c8ed3db1, with backpatches through PostgreSQL 16; older branches already retried launches promptly enough to mitigate the problem.
- After the commit, Amit accepted the single-latch approach but suggested a more specific explanatory comment, Dilip Kumar supported the design, and Ashutosh endorsed the precautionary change; the supplied commit leaves that comment suggestion unincorporated, and no further patch was submitted #6 #7 #8.