model-writtenrun 4236 - may be wrong, links go to the source messages. Commit-by-commit LLM analysis is in the Commits dialog.
- Bertrand Drouvot demonstrated that startup-packet truncation could split a multibyte character and prevent connections using the same overlength name accepted by CREATE DATABASE; his initial patch inferred an encoding and clipped names at character boundaries #1.
- Kyotaro Horiguchi advocated requiring exact names, Tom Lane rejected the encoding assumptions, and Nathan Bossart considered the added complexity unjustified; Bertrand consequently replaced the implementation with a patch removing truncation entirely #2 #3 #5 #6.
- Nathan approved the deletion-only patch but recommended PostgreSQL 17 because it changed longstanding behavior and broke some previously successful connections; Michael Paquier opposed backpatching, and Bertrand set the target accordingly #7 #8 #9.
- Nathan subsequently suggested rejecting overlength names immediately, Tom supported the idea, and Bertrand added explicit FATAL checks to startup-packet parsing; Kyotaro then questioned the chosen role error code #10 #11 #13 #15.
- Nathan committed the deletion-only patch from #6 unchanged as 562bee0fc1, abandoning the early checks because they duplicated distant error messages, startup packets already had a restrictive size limit, and the checks had uncertain interactions with db_user_namespace #16.
- Tom and Bertrand accepted the committed behavior, leaving the change landed and direct startup-parser errors available only as an optional future follow-up #16 #17 #18.