From: Oleksandr Voytsekhovskyy <young.inbox@gmail.com>
To: PostgreSQL General <pgsql-general@lists.postgresql.org>
Subject: Wrong sorting on docker image
Date: Sat, 16 Oct 2021 13:50:31 +0300
Message-ID: <F29709C9-A061-4034-A77D-7E237CF36391@gmail.com> (raw)
Greetings
Starting from version 12.0 official docker image switched from Debian-stretch to Debian-bullseye and from that point we have a huge pain with sorting issues on Russian collation.
Dockerfile:
FROM postgres:14
RUN apt-get clean && apt-get update && apt-get install -y locales
RUN localedef -i ru_RU -c -f UTF-8 -A /usr/share/locale/locale.alias ru_RU.UTF-8
ENV LANG ru_RU.utf8
postgres=# select version();
version
-----------------------------------------------------------------------------------------------------------------------------
PostgreSQL 14.0 (Debian 14.0-1.pgdg110+1) on x86_64-pc-linux-gnu, compiled by gcc (Debian 10.2.1-6) 10.2.1 20210110, 64-bit
Issue:
postgres=# SELECT * FROM unnest(ARRAY ['ея', 'ёа']) name ORDER BY name;
name
------
ёа
ея
(2 строки)
еqя should go before ёqа
postgres=# SELECT 'ея' COLLATE "ru_RU" < 'ёа' COLLATE "ru_RU";
?column?
----------
f
(1 строка)
And should be TRUE here
Any idea how to fix that?
We are not able manage this for 3 years already (((
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-general@postgresql.org
Cc: young.inbox@gmail.com
Subject: Re: Wrong sorting on docker image
In-Reply-To: <F29709C9-A061-4034-A77D-7E237CF36391@gmail.com>
References: <F29709C9-A061-4034-A77D-7E237CF36391@gmail.com>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox