model-writtenrun 4064 - may be wrong, links go to the source messages. Commit-by-commit LLM analysis is in the Commits dialog.
- Ranier Vilela proposed guarding NULL locales before reporting unsupported providers in two prefix-transform routines in #1, and Robert Haas confirmed the dereference problem while leaving the diagnostic wording open in #2.
- Michael Paquier requested error-style improvements in #4, which Ranier incorporated in #6; Michael then expanded the patch to make unsupported-provider errors consistent and identify the calling function across pg_locale.c in #7.
- Jeff Davis explained in #8 that a NULL locale denotes COLLPROVIDER_LIBC, so the provider can always be reported, and floated replacing NULL with a static locale structure as a possible future refactoring that this patch did not pursue.
- Ranier incorporated explicit libc reporting in #9, but supplied a delta against #6; Michael flagged the application problem in #10, favored consistent unsupported-provider wording, and proposed backpatching to PostgreSQL 16 after its release tag.
- After Jeff agreed in #11, Michael supplied a consolidated patch for HEAD and PostgreSQL 16 in #12, and Ranier approved it in #13.
- Jeff suggested using __func__ in #14; Ranier raised a Windows compatibility concern in #15, Kyotaro Horiguchi identified ambiguous diagnostic wording in #16, and Michael explained that __func__ was already used on Windows in #17.
- Michael addressed both diagnostic suggestions with a shared PGLOCALE_SUPPORT_ERROR() macro and clearer wording in #18, which Jeff approved in #19.
- Michael committed #18 unchanged as b8f44a4779, with a PostgreSQL 16 backport, and announced completion in #20; Ranier's thanks in #21 closed the thread with the proposed fix landed.