model-writtenrun 2870 - may be wrong, links go to the source messages. Commit-by-commit LLM analysis is in the Commits dialog.
- Noah Misch opened the thread after a sarus buildfarm failure left foreground VACUUM blocked for six minutes, initially suspecting tuple locking or autovacuum cancellation #1.
- Noah supplied timing and cancellation experiments, but none reproduced the failure; he also observed successive autovacuum workers canceling their predecessors and considered adding timeout diagnostics #2.
- Alexander Lakhin reported a similar earlier iguana failure and pointed to his preliminary analysis, without reporting a review or test of the attached patches #3.
- Noah then reproduced buffer-pin starvation: autovacuum workers waiting for an uncommitted GRANT retained a pg_database buffer pin, preventing foreground VACUUM from acquiring its cleanup lock #4.
- Noah chose to release the pin before heap_inplace_lock() waits, rather than restrict the isolation test to freezing multixacts, because releasing the pin also improves real concurrency; his final message left open whether this explained the iguana failure #4.
- The production fix from #4 landed unchanged in 30d47ec8c6, excluding the demonstration patch, with backports through PostgreSQL 12.