Simplify checks for deterministic collations.
Jeff Davis <jdavis@postgresql.org>
Simplify checks for deterministic collations. Remove redundant checks for locale->collate_is_c now that we always have a valid pg_locale_t. Also, remove pg_locale_deterministic() wrapper, which is no longer useful after commit e9931bfb75. Just check the field directly, consistent with other fields in pg_locale_t. Author: Andreas Karlsson Discussion: https://postgr.es/m/60929555-4709-40a7-b136-bcb44cff5a3c@proxel.se
Files
| Path | Change | +/− |
|---|---|---|
| src/backend/access/hash/hashfunc.c | modified | +2 −2 |
| src/backend/regex/regc_pg_locale.c | modified | +1 −1 |
| src/backend/utils/adt/like.c | modified | +2 −2 |
| src/backend/utils/adt/pg_locale.c | modified | +0 −7 |
| src/backend/utils/adt/varchar.c | modified | +4 −4 |
| src/backend/utils/adt/varlena.c | modified | +7 −11 |
| src/include/utils/pg_locale.h | modified | +0 −1 |
Discussion
- tiny step toward threading: reduce dependence on setlocale() 33 messages · 2024-06-06 → 2025-10-28