Control collation behavior with a method table.
authorJeff Davis <[email protected]>
Wed, 8 Jan 2025 22:26:33 +0000 (14:26 -0800)
committerJeff Davis <[email protected]>
Wed, 8 Jan 2025 22:26:46 +0000 (14:26 -0800)
commita2f17f004d229f69a32cfa80904b95edcbc68f95
treee82bb09d5161ad3d00f3882a8d53650214c4f4b2
parent4f5cef2607c1f8804d4b54250642aaf586745b0e
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
src/backend/utils/adt/pg_locale.c
src/backend/utils/adt/pg_locale_icu.c
src/backend/utils/adt/pg_locale_libc.c
src/include/utils/pg_locale.h