model-writtenrun 947 - may be wrong, links go to the source messages. Commit-by-commit LLM analysis is in the Commits dialog.
- Jeff Davis proposed allowing length=-1 for NUL-terminated strings in collation and transformation APIs, both to simplify their implementation and to prepare for provider method tables and possible extension hooks #1.
- Jeff expanded the proposal into seven patches covering collator construction, cache management, resource ownership, invalidation, and separate ICU/libc implementations behind method tables; he described the work as rough and left provider registration, version reporting, formatting methods, initdb integration, and provider-specific context unresolved #2.
- On September 24, 2024, Jeff committed the length=-1 component from #2 as ac30021356, correcting transformation-call argument order and polishing the code; that commit did not include the other six patches.
- In May 2026, Andres Freund objected that special negative lengths prevented compiler access annotations and more accurate UBSan checks, while adding unnecessary branches, and proposed separate methods for NUL-terminated strings #3.
- Jeff accepted that tradeoff and supplied an eight-file reversal introducing separate NUL-terminated methods and removing special lengths from collation and case-conversion APIs, while acknowledging that the churn would complicate future backports #4.
- At the thread's close, Jeff planned to commit the reversal #5, and Andres endorsed the instrumentation benefit and possible runtime improvement #6.
- On May 15, 2026, Jeff committed the reversal from #4 with a minor comment correction as 6d22c67c3b, undoing the special-length API introduced by ac30021356; the supplied thread does not establish the disposition of the remaining original series.