model-writtenrun 7930 - may be wrong, links go to the source messages. Commit-by-commit LLM analysis is in the Commits dialog.
- Junfeng Yang reported that a large toasted database ACL makes VACUUM FREEZE fail with “wrong tuple length,” and submitted a fix co-authored with Ashwin Agrawal that retained cached checks but fetched a heap tuple for actual updates, together with regression tests #1.
- Michael Paquier simplified the fix to fetch the database tuple directly without using syscache, removed tests he considered too costly, and raised the possibility of similar trouble if pg_class acquired a TOAST table #4.
- Michael Paquier kept the change conservative by adding a warning to heap_inplace_update() rather than extending the fix, and proposed applying it only to HEAD; Ashwin Agrawal accepted the simpler scan and explained that the original performance concern arose from Greenplum calling this function more frequently #5 #6.
- Michael Paquier committed the final patch with only a wording change to the heap_inplace_update() warning as 947789f1f5, crediting Junfeng Yang and Ashwin Agrawal, and announced its landing on HEAD #5 #7.
- In January 2023, Arthur Nascimento reported a customer encountering the same problem on PostgreSQL 12 and requested backports to versions 12 and 13 #8.
- Nathan Bossart explained that the backpatches had already been made through thread #47226, and Arthur Nascimento acknowledged this, leaving no outstanding request at the end of the thread #9 #10.