Locale provider refactoring
pg_locale_t method tables, separate collation/ctype versions and removing the backend's global LC_CTYPE dependency.
Versions
- PostgreSQL 19 · shipped · improved · moderate · 7 commits · +457 / -306 lines
- PostgreSQL 18 · shipped · improved · moderate · 6 commits · +187 / -244 lines
Threads
- Use correct collation in pg_trgm
- [PG19] Indexes from 18 miss rows after pg_upgrade
- [PG19] ILIKE index scan misses rows with a libc UTF-8 collation on macOS
- ILIKE '%' never matches a non-ASCII byte in single-byte C-ctype databases
- Identifier downcase change for LATIN1, in v19
- EUC_* ILIKE index scan stopped matching seq scan in v19
- Remaining dependency on setlocale()
- Fix for fragile code in ltree/crc32.c
- Crash issue in PG18.5 regression
- Collation & ctype method table, and extension hooks
- Selectivity fix for like_fixed_prefix_ci()
- [PATCH] Avoid collation lookup for "char" statistics
- Add a guard against uninitialized default locale
- Refactor: allow pg_strncoll(), etc., to accept -1 length for NUL-terminated cstrings.
- NLS: use gettext() to translate system error messages
- Fix more multibyte issues in ltree
- [PATCH] Avoid potential NULL dereference in LIKE/ILIKE with C locale
- small cleanup of ICU includes
- Fixes bug in strlower_libc_sb()
- downcase_identifier(): use method table from locale provider
- tiny step toward threading: reduce dependence on setlocale()
- make tsearch use the database default locale
- Can we make pg_strcasecmp(), pg_tolower(), pg_toupper() plain ASCII semantics?
- fixing tsearch locale support
- CREATE DATABASE command for non-libc providers
- [18] Unintentional behavior change in commit e9931bfb75
- [18] separate collation and ctype versions, and cleanup of pg_database locale fields
- [18] Fix a few issues with the collation cache
- simplify regular expression locale global variables
- Speed up collation cache
- Avoid a possible null pointer (src/backend/utils/adt/pg_locale.c)
- check_strxfrm_bug()
- Make uselocale protection more consistent
- Refactor to introduce pg_strcoll().
- pgsql: Refactor to add pg_strcoll(), pg_strxfrm(), and variants.
- Rework of collation code, extensibility