Re: Wrong sorting on docker image

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: Wrong sorting on docker image
Дата
Msg-id 1061942.1634398922@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Wrong sorting on docker image  (Oleksandr Voytsekhovskyy <young.inbox@gmail.com>)
Ответы Re: Wrong sorting on docker image  (Thomas Munro <thomas.munro@gmail.com>)
Список 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 по дате отправления:

Предыдущее
От: "Peter J. Holzer"
Дата:
Сообщение: Re: Wrong sorting on docker image
Следующее
От: Adrian Klaver
Дата:
Сообщение: Re: "two time periods with only an endpoint in common do not overlap" ???