From: Tom Lane <tgl@sss.pgh.pa.us>
To: Matthias Apitz <guru@unixarea.de>
Cc: pgsql-general@lists.postgresql.org
Subject: Re: sort order for UTF-8 char column with Japanese UTF-8
Date: Fri, 04 Feb 2022 09:38:41 -0500
Message-ID: <388084.1643985521@sss.pgh.pa.us> (raw)
In-Reply-To: <20220204082905.GA28@sh4-5.1blu.de>
References: <YfurH8G4f00cWnu1@c720-r368166>
<Yfuzr4wFtyTK9zFm@pureos>
<253777.1643900437@sss.pgh.pa.us>
<20220204082905.GA28@sh4-5.1blu.de>
Matthias Apitz <guru@unixarea.de> writes:
> Said that, does the SORT done by the server depends on the environment
> (LANG, LC_*) in which the PostgreSQL server is started or only of the
> sp_catalog information of the database in question?
We set LC_COLLATE and LC_CTYPE from the database's relevant
pg_database fields. The remaining LC environment variables
shouldn't affect this (and I think we force them to "C"
anyway).
regards, tom lane
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: tgl@sss.pgh.pa.us, guru@unixarea.de
Subject: Re: sort order for UTF-8 char column with Japanese UTF-8
In-Reply-To: <388084.1643985521@sss.pgh.pa.us>
References: <YfurH8G4f00cWnu1@c720-r368166> <Yfuzr4wFtyTK9zFm@pureos> <253777.1643900437@sss.pgh.pa.us> <20220204082905.GA28@sh4-5.1blu.de> <388084.1643985521@sss.pgh.pa.us>
* 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