From: Rich Shepard <rshepard@appl-ecosys.com>
To: pgsql-general@lists.postgresql.org
Subject: Re: Encoding/collation question
Date: Thu, 12 Dec 2019 05:37:59 -0800 (PST)
Message-ID: <alpine.LNX.2.20.1912120536320.8975@salmo.appl-ecosys.com> (raw)
In-Reply-To: <875zimb0j8.fsf@news-spur.riddles.org.uk>
References: <alpine.LNX.2.20.1912111112510.10822@salmo.appl-ecosys.com>
<24866.1576092317@sss.pgh.pa.us>
<alpine.LNX.2.20.1912111142310.10822@salmo.appl-ecosys.com>
<875zimb0j8.fsf@news-spur.riddles.org.uk>
On Thu, 12 Dec 2019, Andrew Gierth wrote:
> Note that it's perfectly fine to use UTF8 encoding and C collation (this
> has the effect of sorting strings in Unicode codepoint order); this is as
> fast for comparisons as LATIN1/C is.
Andrew,
This is really useful insight. I've not thought of the relationship of
encoding to collation (which I now know there isn't.)
> For those cases where you need data to be sorted in a
> culturally-meaningful order rather than in codepoint order, you can set
> collations on specific columns or in individual queries.
Not an issue for my work. :-)
Thanks very much,
Rich
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: rshepard@appl-ecosys.com
Subject: Re: Encoding/collation question
In-Reply-To: <alpine.LNX.2.20.1912120536320.8975@salmo.appl-ecosys.com>
References: <alpine.LNX.2.20.1912111112510.10822@salmo.appl-ecosys.com> <24866.1576092317@sss.pgh.pa.us> <alpine.LNX.2.20.1912111142310.10822@salmo.appl-ecosys.com> <875zimb0j8.fsf@news-spur.riddles.org.uk> <alpine.LNX.2.20.1912120536320.8975@salmo.appl-ecosys.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