model-writtenrun 3268 - may be wrong, links go to the source messages. Commit-by-commit LLM analysis is in the Commits dialog.
- Heikki Linnakangas reported that multixid wraparound testing exposed an assertion failure when MultiXact truncation attempted to allocate memory while compacting the fsync request queue inside a critical section, and supplied a reproducer and patch in #1.
- The patch in #1 makes CompactCheckpointerRequestQueue() skip compaction inside critical sections; testing that fix also exposed a deadlock between autovacuum waiting for queue space and the checkpointer waiting for autovacuum.
- To resolve the deadlock, #1 also adds AbsorbSyncRequests() to both checkpoint-delay wait loops; Heikki questioned the long MultiXact truncation critical section but considered these targeted fixes appropriate for stable branches.
- Heikki committed the attached patch unchanged as b1ffe3ff0b, with no independent review recorded in the thread.
- Heikki confirmed completion and backpatching through PostgreSQL 14 in #2, explaining that older versions lacked the SLRU truncation sync requests responsible for this scenario and that further backpatching would require a concrete report.