From: Matthias Apitz <guru@unixarea.de>
To: pgsql-general@lists.postgresql.org
Subject: Re: sort order for UTF-8 char column with Japanese UTF-8
Date: Thu, 3 Feb 2022 11:51:27 +0100
Message-ID: <Yfuzr4wFtyTK9zFm@pureos> (raw)
In-Reply-To: <YfurH8G4f00cWnu1@c720-r368166>
References: <YfurH8G4f00cWnu1@c720-r368166>
El día jueves, febrero 03, 2022 a las 11:14:55 +0100, Matthias Apitz escribió:
>
> Hello,
>
> With ESQL/C on a PostgreSQL 13.1 server I see the result of this query:
>
> select katkey,normform from swd_anzeige where normform >= 'A' ORDER BY ASC;
>
> coming out in this order:
>
> query: fetch swd_anzeige_seq
> RESULT: A
> query: fetch swd_anzeige_seq
> RESULT: ゲアハルト・A・リッター
> query: fetch swd_anzeige_seq
> RESULT: ゲルハルト・A・リッター
> query: fetch swd_anzeige_seq
> RESULT: チャールズ・A・ビアード
> query: fetch swd_anzeige_seq
> RESULT: A010STRUKTUR
> query: fetch swd_anzeige_seq
> RESULT: A010STRUKTUR
> query: fetch swd_anzeige_seq
> RESULT: A010STRUKTUR
> query: fetch swd_anzeige_seq
> RESULT: A0150SUPRALEITER
>
> I loaded the same table in my server, but can't get the same order with
> psql:
>
>
> katkey | normform
> --------+---------------------------------------------------------
> 233871 | A
> ...
> 92938 | ゲアハルト・A・リッター
> 92938 | ゲルハルト・A・リッター
> 92938 | リッター0ゲルハルト・A
>
> i.e. the Japanese rows are sorted at the end after all others. Why?
>
I forgot to say, both database have:
psql -l
...
ueisis | sisis | UTF8 | de_DE.UTF-8 | de_DE.UTF-8 |
matthias
--
Matthias Apitz, ✉ guru@unixarea.de, http://www.unixarea.de/ +49-176-38902045
Public GnuPG key: http://www.unixarea.de/key.pub
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: guru@unixarea.de
Subject: Re: sort order for UTF-8 char column with Japanese UTF-8
In-Reply-To: <Yfuzr4wFtyTK9zFm@pureos>
References: <YfurH8G4f00cWnu1@c720-r368166> <Yfuzr4wFtyTK9zFm@pureos>
* 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