~/talk

Collation Challenges: Sorting it Out

Talkat PGConf India 2025 · 2025-03-05..03-07· [databases]
slides:none on file

Postgres collations change when underlying glibc changes and that can silently corrupt btree indexes and constraints: upgrading RHEL7 (glibc 2.17) databases to RHEL9 (glibc 2.34) can flip sort order, create duplicate-primary-key insertions, and make reindex fail. A 26 million-string torture test proves signatures differ and timings vary wildly (example orders: ~3 min unsorted, 3 s with index, versus 53+ min on later glibc builds). Amazon packages a compatibility RPM reproducing glibc 2.17 to pin ordering, fix corrupt indexes by reindexing, and restore prior performance in RDS/Aurora.

AI-written summary · about

  1. 0:00Introduction and speaker background
  2. 1:10Collation basics and GBC versions
  3. 4:48Real-world collation differences
  4. 8:40Collation torture test and performance impact
  5. 14:27Distributed system collation issues
  6. 20:57Forward-looking collation solution
  7. 27:52Backward-compatible collation fix
  8. 39:13Deployment and risks of collation fixes
  9. 41:41Q&A on collation risks and future plans
~/search
type to search 6,249 conferences, 138,987 speakers and 185,172 talks
~/help
cmdctrl k
search every conference, speaker and series
/
focus the filter search
h
home
c
conferences
s
speakers
e
series
t
light / dark — the status bar button does the same
?
this help
esc
close this, then clear every filter — or just the search, while you are typing in it

Ignored while you are typing. Pages without a filter rail have no search to focus.