model-writtenrun 8780 - may be wrong, links go to the source messages. Commit-by-commit LLM analysis is in the Commits dialog.
- Michael Paquier demonstrated that improperly quoted createdb locale arguments could produce a misleading transaction-block error and posted a fix covering --encoding, --lc-collate and --lc-ctype in #1.
- The patch in #1 established the server connection before constructing CREATE DATABASE so appendStringLiteralConn() could perform encoding-sensitive quoting, a requirement Michael attributed to Tom.
- Daniel Gustafsson reported that the patch passed tests and proposed an inline negative locale test to prevent regressions in #2.
- Michael retained the implementation from #1 and added tests checking failures and error messages for all three options in 008cf04096.
- In #3, Michael explained that Daniel's proposed test failed even without the fix, described the stronger command_checks_all checks, and confirmed that the fix had been applied down to PostgreSQL 9.5, leaving no outstanding work stated in the thread.