model-writtenrun 4022 - may be wrong, links go to the source messages. Commit-by-commit LLM analysis is in the Commits dialog.
- Michael Paquier proposed replacing non-throwing WAL reader allocations with palloc() so out-of-memory errors could not prematurely end crash recovery and silently corrupt a cluster; this avoided the ABI changes required by a separate error-code proposal and allowed backpatching through PostgreSQL 12 #1.
- Thomas Munro supported hard failure during crash recovery, explaining that WAL header validation now distinguished legitimate allocation requirements from recycled bogus data, removing the justification for treating allocation failure as end-of-WAL #2.
- Michael observed that accepting hard failure for both crash and archive recovery could make the separate error-code proposal unnecessary, although it could disrupt standbys; no separate API change was included here #3.
- Noah Misch agreed that hard failure was acceptable and equating ENOMEM with end-of-WAL was not, while noting a filesystem atomicity caveat that did not affect his conclusion #4.
- After announcing his intention to apply the patch #5, Michael committed the original patchset unchanged as 6b18b3fe2c and confirmed backpatching through PostgreSQL 12, completing the work submitted in this thread #6.