model-writtenrun 8673 - may be wrong, links go to the source messages. Commit-by-commit LLM analysis is in the Commits dialog.
- Peter Geoghegan reported discovering a minor _bt_truncate() bug while stress-testing experimental B-tree bloat work; PostgreSQL 12 and master were affected #1.
- The bug retained unnecessary non-key INCLUDE attributes when all key attributes and a heap TID were needed in a new high key, wasting space while leaving tuple metadata correct #1.
- Peter supplied a patch limiting physical truncation to Min(keepnatts, nkeyatts) and proposed committing it to master and PostgreSQL 12 unless objections arose #1.
- The fix landed as 4b42a89938 with only additional explanatory comments and commit-message detail, and was backpatched to PostgreSQL 12; the supplied thread contains no subsequent discussion or independent review.