model-writtenrun 4276 - may be wrong, links go to the source messages. Commit-by-commit LLM analysis is in the Commits dialog.
- Evan Jones reported that locale-sensitive isspace() on macOS could consume a byte inside a UTF-8 character during hstore parsing, and submitted a patch using scanner_isspace() with a regression test #1.
- Michael Paquier recognized an omission from an earlier whitespace fix, while Evan's broader audit found no other reproducible parsing bug warranting expansion of this patch #2 #3.
- Michael reproduced the bug on macOS and found that the proposed regression test failed with non-UTF-8 database encodings, so he isolated and expanded the tests into a guarded UTF-8 suite; the original parser changes landed with those light test adjustments and were backpatched through PostgreSQL 11 #4 d522b05c8c.
- After the commit, Evan discovered that scanner_isspace() excludes vertical tabs, changing their treatment in unquoted hstore values; Michael proposed preserving the six-character ASCII whitespace definition with a local helper and supplied a follow-up patch #5 #6 #7.
- Tom Lane argued for retaining alignment with the core parser and considered compatibility concerns about vertical tabs insufficient to justify another change; Michael accepted that position, leaving the follow-up patch unapplied #8 #9.
- Michael also considered additional multibyte checks in hstore parsing, but withdrew the suggestion after Tom pointed out that input encoding had already been validated #9 #10 #11.
- Evan, Michael, and Tom agreed to retain the landed fix and its backports; Tom supported considering vertical-tab whitespace in the core parser for PostgreSQL 17, and Michael submitted that broader proposal in a separate thread #12 #13 #14 #15.
- In October, Thomas Munro reported platform-dependent quoting of composite values caused by isspace() examining individual UTF-8 bytes in rowtypes.c, and Evan demonstrated the same locale-dependent behavior on macOS and suggested scanner_isspace() #16 #17.
- The thread ended with Michael identifying analogous quoting behavior in pageinspect's gistfuncs.c; the hstore fix remained landed, its vertical-tab follow-up was abandoned, and the newly identified quoting issues had no attached fix or recorded resolution in this thread #18 #12.