model-writtenrun 2006 - may be wrong, links go to the source messages. Commit-by-commit LLM analysis is in the Commits dialog.
- Jeff Davis reported that CREATE DATABASE could inherit C.UTF-8 from a builtin-provider template while selecting ICU, producing a warning but succeeding because ICU validates locale names loosely #1.
- Jeff Davis proposed requiring an explicit locale when changing providers and attached a one-line guard preventing inheritance of datlocale across different providers #1.
- The initial proposal targeted backpatching through PostgreSQL 17, while acknowledging that existing commands could start failing and suggesting restricting the fix to PostgreSQL 18 and later #1.
- Jeff Davis committed the attached code unchanged as 06697909b6, restricting backpatching to PostgreSQL 18 because the change can introduce errors.
- In the final reply, Jeff Davis confirmed the PostgreSQL 18 cutoff, reasoning that PostgreSQL 17 would merely retain the already possible outcome of a poorly validated ICU locale; no further patch work remained in the thread #2.