Re: Custom Glibc collation version strings under LOCPATH

Joe Conway <mail@joeconway.com>

From: Joe Conway <mail@joeconway.com>
To: Thomas Munro <thomas.munro@gmail.com>, pgsql-hackers <pgsql-hackers@postgresql.org>
Date: 2025-06-04T13:52:57Z
Lists: pgsql-hackers
On 6/4/25 00:03, Thomas Munro wrote:
> One way to move to a newer glibc-based Linux distribution but keep the
> locales working the same* without keeping the associated zombie C code
> alive is to find the source system's collation definition source
> files, compile them with the localedef on the target system and point
> to the top-level directory with the environment variable LOCPATH.

I don't think this works in all cases because I have seen where sorting 
was affected by C code rather than than data changes.

-- 
Joe Conway
PostgreSQL Contributors Team
Amazon Web Services: https://aws.amazon.com



Commits

  1. Use libc version as a collation version on glibc systems.