Refactor to introduce pg_locale_deterministic().
Jeff Davis <jdavis@postgresql.org>
Refactor to introduce pg_locale_deterministic(). Avoids the need of callers to test for NULL, and also avoids the need to access the pg_locale_t structure directly. Reviewed-by: Peter Eisentraut, Peter Geoghegan Discussion: https://postgr.es/m/a581136455c940d7bd0ff482d3a2bd51af25a94f.camel%40j-davis.com
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 | +9 −0 |
| src/backend/utils/adt/varchar.c | modified | +4 −4 |
| src/backend/utils/adt/varlena.c | modified | +6 −8 |
| src/include/utils/pg_locale.h | modified | +1 −0 |
Discussion
- Rework of collation code, extensibility 24 messages · 2022-12-18 → 2023-02-23