model-writtenrun 8763 - may be wrong, links go to the source messages. Commit-by-commit LLM analysis is in the Commits dialog.
- Tom Lane proposed accepting Unicode escapes whenever their characters can be represented in the server encoding, using a cached conversion function for SQL literals, identifiers, and XML identifier conversion; his initial patch left JSON unchanged and lacked error cursors for conversion failures #1.
- Tom concluded that JSON escapes should behave like literal characters because normal output encoding conversion already handles their representation #4; Chapman Flack supported that principle #8, and Andrew Dunstan clarified that JSON and text escape rules should stay synchronized #9, which Tom agreed to implement #10.
- Tom's next patch added JSON and JSONPath conversion, accurate error cursors for Unicode escapes, shared surrogate helpers, and regression coverage; improving cursor placement for other token errors was explicitly deferred to separate work #11.
- After JSON lexing moved into shared code, Tom rebased the patch and retained the old frontend restrictions because frontend code lacks server encoding conversion facilities #12; Robert Haas welcomed relaxing the historical JSON restrictions #13.
- John Naylor successfully tested the final patch with EUC-KR strings, JSON, and JSONPath, found no significant parsing slowdown, and suggested consolidating duplicated code-point validation #14.
- Tom incorporated that small helper refactor and committed #12 as a6525588b7, confirming the push in #15; the thread ended with Chapman explaining that the landed behavior met his SQL generator's needs, with no further changes requested #16.