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 Branch ------ master Details ------- https://git.postgresql.org/pg/commitdiff/a2f17f004d229f69a32cfa80904b95edcbc68f95 Modified Files -------------- src/backend/utils/adt/pg_locale.c | 123 ++++----------------------- src/backend/utils/adt/pg_locale_icu.c | 147 +++++++++++++++++++-------------- src/backend/utils/adt/pg_locale_libc.c | 53 ++++++++++-- src/include/utils/pg_locale.h | 33 ++++++++ 4 files changed, 180 insertions(+), 176 deletions(-)