Remove lc_ctype_is_c().
Jeff Davis <jdavis@postgresql.org>
Remove lc_ctype_is_c(). Instead always fetch the locale and look at the ctype_is_c field. hba.c relies on regexes working for the C locale without needing catalog access, which worked before due to a special case for C_COLLATION_OID in lc_ctype_is_c(). Move the special case to pg_set_regex_collation() now that lc_ctype_is_c() is gone. Author: Andreas Karlsson Discussion: https://postgr.es/m/60929555-4709-40a7-b136-bcb44cff5a3c@proxel.se
Files
| Path | Change | +/− |
|---|---|---|
| src/backend/regex/regc_pg_locale.c | modified | +18 −3 |
| src/backend/utils/adt/formatting.c | modified | +12 −15 |
| src/backend/utils/adt/like.c | modified | +1 −1 |
| src/backend/utils/adt/like_support.c | modified | +7 −12 |
| src/backend/utils/adt/pg_locale.c | modified | +0 −26 |
| src/include/catalog/pg_collation.dat | modified | +1 −2 |
| src/include/utils/pg_locale.h | modified | +0 −2 |
Discussion
- tiny step toward threading: reduce dependence on setlocale() 33 messages · 2024-06-06 → 2025-10-28