Re: Wrong sorting on docker image - Mailing list pgsql-general

From Tom Lane
Subject Re: Wrong sorting on docker image
Date
Msg-id 1061942.1634398922@sss.pgh.pa.us
Whole thread Raw
In response to Wrong sorting on docker image  (Oleksandr Voytsekhovskyy <young.inbox@gmail.com>)
Responses Re: Wrong sorting on docker image
List pgsql-general
Oleksandr Voytsekhovskyy <young.inbox@gmail.com> writes:
> Starting from version 12.0 official docker image switched from Debian-stretch to Debian-bullseye and from that point
wehave a huge pain with sorting issues on Russian collation. 

Yeah, Debian versions after stretch adopted the significant glibc locale
data changes (sorting rule changes) that are discussed at [1].

>   ея should go before ёа

I'm not qualified to have an opinion on that point, but one would hope
that the glibc people who changed the sorting rules are qualified.
If you disagree, you need to go discuss it with glibc.  Postgres doesn't
define any text sorting rules, we just use what libc or ICU tells us.

Speaking of ICU, if you are using an ICU-enabled Postgres build,
maybe you could find an ICU collation that acts the way you want.
This wouldn't be a perfect solution, because we don't yet have
the ability to set an ICU collation as a database's default.
But you can attach ICU collations to individual text columns,
and maybe that would be a good enough workaround.

            regards, tom lane

[1] https://wiki.postgresql.org/wiki/Locale_data_changes



pgsql-general by date:

Previous
From: "Peter J. Holzer"
Date:
Subject: Re: Wrong sorting on docker image
Next
From: Adrian Klaver
Date:
Subject: Re: "two time periods with only an endpoint in common do not overlap" ???