model-writtenrun 2561 - may be wrong, links go to the source messages. Commit-by-commit LLM analysis is in the Commits dialog.
- Noah Misch requested a decision before the imminent release on whether escaping routines should preserve bytes following an invalid multibyte lead byte, forwarding Andres Freund's patch and explaining Jeff Davis's concern that swallowing valid delimiters could confuse applications that postprocess escaped output #1.
- Laurenz Albe favored preserving more bytes and making the change promptly if reliable, while Andrew Dunstan supported the behavior and considered the patch trivial but cautioned about last-minute release changes #2 #3.
- Tom Lane found that the initial patch still discarded incomplete characters at the end of a string, then supplied a revision that handled incomplete and invalid characters together while preserving their trailing bytes #4.
- Andres Freund and Noah Misch favored retaining distinct incomplete/invalid diagnostics, and Tom Lane proposed limiting repetitive error reports; the next patch preserved that distinction and added one-complaint-per-string handling only to PQescapeStringInternal because PQescapeInternal already stops at its first error #5 #6 #7 #8.
- Andres Freund approved the revised patch after inspecting before-and-after test_escape output and acknowledged Tom Lane's substantial authorship contribution #9.
- Jeff Davis explained why preserving potential delimiters was safer and examined the choice to replace each invalid byte separately; Andres Freund and Tom Lane rejected grouping invalid subsequences as unnecessary complexity across supported encodings, and Jeff endorsed retaining the proposed behavior #10 #11 #12 #13 #14 #16.
- Tom Lane committed the final attached patch with light diagnostic-formatting and commit-message differences as d6d29b2133, crediting Andres Freund as author and himself as co-author; he confirmed completion, and Jeff Davis closed the thread with thanks, leaving no attached work outstanding #8 #18 #19.