Collations: Introduction, Features, Problems
summary
Explains how PostgreSQL relies on the Unicode Collation Algorithm and two providers, the OS C library and ICU, and shows that changing glibc behavior (notably glibc 2.28) alters sort results and can break indexes during upgrades. Describes the UCA sort key levels, ICU options like numeric and emoji ordering, and the new Postgres 12 support for non-deterministic collations to enable true case‑insensitive comparisons. Recommends running reindex after locale or libc upgrades because mismatched collation semantics can cause index corruption or surprising ordering changes.
AI-written summary · about
chapters (19)
- 0:00Introduction
- 1:53Examples
- 2:22Unicode
- 5:46Unicode collation
- 8:22Accent collation
- 12:53Common problems
- 17:29Sort options
- 18:04Shift shunt
- 19:28Collation providers
- 20:39Creating a collation
- 22:07Database collation
- 22:49Customization
- 24:40Numeric Sort
- 26:09Emoji Sort
- 28:00Caseinsensitive Search
- 30:23Caseinsensitive Sorting
- 35:04Shift to Shift
- 36:17Version Issues
- 37:49Questions
