Control collation behavior with a method table.
Jeff Davis <jdavis@postgresql.org>
Control collation behavior with a method table. Previously, behavior branched based on the provider. A method table is less error-prone and more flexible. The ctype behavior will be addressed in an upcoming commit. Reviewed-by: Andreas Karlsson Discussion: https://postgr.es/m/2830211e1b6e6a2e26d845780b03e125281ea17b.camel%40j-davis.com
Files
| Path | Change | +/− |
|---|---|---|
| src/backend/utils/adt/pg_locale.c | modified | +16 −107 |
| src/backend/utils/adt/pg_locale_icu.c | modified | +86 −61 |
| src/backend/utils/adt/pg_locale_libc.c | modified | +45 −8 |
| src/include/utils/pg_locale.h | modified | +33 −0 |
Discussion
- Collation & ctype method table, and extension hooks 24 messages · 2024-09-26 → 2026-07-07