model-writtenrun 3067 - may be wrong, links go to the source messages. Commit-by-commit LLM analysis is in the Commits dialog.
- Ayush Tiwari reported that many database ACLs could toast pg_database.datacl and make DROP DATABASE fail with “wrong tuple length”; #1 supplied a reproducer and a patch that reads the catalog tuple directly instead of using the flattened syscache copy.
- Tomas Vondra reproduced the failure and supported the fix in #2, explaining that other syscache-based in-place updates he investigated appeared protected because pg_class lacks TOAST storage.
- Tomas Vondra committed #1 as 0f92b230f8 with only comment and whitespace edits, then reported in #3 that it was backpatched through PostgreSQL 12; PostgreSQL 11 was excluded because it was unsupported, and an automated test was abandoned because no suitable TAP location was apparent and creating hundreds of roles seemed impractical.
- Yugo Nagata explained in #4 that he abandoned an assertion because he could not reliably detect detoasted tuples, and instead supplied a follow-up comment explaining why dropdb() must avoid syscache tuples for in-place updates.
- Tomas Vondra endorsed the comment in #5 and committed it unchanged as 5cb902e9d5, also backpatched through PostgreSQL 12.
- The thread ended with Tomas Vondra confirming the comment patch was committed in #6, leaving both submitted patches landed and no further patch pending.