Allow pg_locale_t APIs to work when ctype_is_c.
authorJeff Davis <[email protected]>
Wed, 26 Nov 2025 20:45:06 +0000 (12:45 -0800)
committerJeff Davis <[email protected]>
Wed, 26 Nov 2025 20:54:37 +0000 (12:54 -0800)
commit147602822597204aa436415ebe295926b268ab5c
treefdffbd984d07419a2bdf6904dd1de95124c50b32
parent1cdb84bb1bcd6de4abcb5b2137f57c6c7463f4ab
Allow pg_locale_t APIs to work when ctype_is_c.

Previously, the caller needed to check ctype_is_c first for some
routines and not others. Now, the APIs consistently work, and the
caller can just check ctype_is_c for optimization purposes.

Discussion: https://postgr.es/m/450ceb6260cad30d7afdf155d991a9caafee7c0d[email protected]
Reviewed-by: Chao Li <[email protected]>
src/backend/utils/adt/pg_locale.c
src/backend/utils/adt/pg_locale_libc.c