~/talk

Sorting Out glibc Collation Challenges

Talkat PGCon 2023 · 2023-05-30..06-02· [linux-and-operating-systems, databases]
slides:none on file

Shows that glibc collation changes between OS releases silently corrupt Postgres indexes: upgrading from 2.17 to newer glibc changes sort order, causing duplicate-key errors, wrong partition placement and broken merge joins. Reproduces the issue with a 26 million-string torture test (MD5 and timings change; sort time jumps from ~3 to ~56 minutes) and with simple PK/partition examples. Delivers a compatibility libc RPM that extracts locale code, details the ~900 patches and build steps, and validates that using it restores old semantics so full re-index required downtime can be avoided.

AI-written summary · about

  1. 0:00Introduction to the problem
  2. 2:52Collations and index breakage
  3. 8:08Fixing corrupted indexes
  4. 10:55Collation torture testing
  5. 17:31Performance regressions
  6. 22:36Distributed system pitfalls
  7. 25:29Why this problem matters
  8. 29:08Future solutions
  9. 33:38Compact collation library
  10. 38:11Implementation and build
  11. 51:56Conclusion and verification
~/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.