pg.ddx.io  pgsql-general@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Laurenz Albe <laurenz.albe@cybertec.at>
To: Oscar Carlberg <oscar.carlberg@fortnox.se>
To: pgsql-general@lists.postgresql.org
Subject: Re: ICU, locale and collation question
Date: Tue, 09 May 2023 15:31:19 +0200
Message-ID: <fbd7f9ec7368c95318e4083256ec0c6196b9ed2f.camel@cybertec.at> (raw)
In-Reply-To: <4210aaef-06ff-628e-a2c8-a1a4bf28d278@fortnox.se>
References: <2a1de395-c69a-3dae-4459-dbdb633df637@fortnox.se>
	<ae423dcf4beb77c20053bedb501400e01e5f2724.camel@cybertec.at>
	<4210aaef-06ff-628e-a2c8-a1a4bf28d278@fortnox.se>

On Tue, 2023-05-09 at 08:54 +0200, Oscar Carlberg wrote:
> Should we still provide createdb with --lc-collate=C and --lc-ctype=C, 
> or should we set those to sv_SE.UTF-8 as well?

That depends on whether you want Swedish or binary sort order
(is "a" < "Z" or not?).  The C collation is not good for natural
language sorting, but it is fast and not subject to collation changes.

Yours,
Laurenz Albe





view thread (7+ messages)  latest in thread

Message-ID: <fbd7f9ec7368c95318e4083256ec0c6196b9ed2f.camel@cybertec.at>
Permalink:  ../fbd7f9ec7368c95318e4083256ec0c6196b9ed2f.camel@cybertec.at/
Also on:    postgresql.org/message-id/fbd7f9ec7368c95318e4083256ec0c6196b9ed2f.camel@cybertec.at

 · 

reply

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: laurenz.albe@cybertec.at, oscar.carlberg@fortnox.se
  Subject: Re: ICU, locale and collation question
  In-Reply-To: <fbd7f9ec7368c95318e4083256ec0c6196b9ed2f.camel@cybertec.at>
  References: <2a1de395-c69a-3dae-4459-dbdb633df637@fortnox.se> <ae423dcf4beb77c20053bedb501400e01e5f2724.camel@cybertec.at> <4210aaef-06ff-628e-a2c8-a1a4bf28d278@fortnox.se> <fbd7f9ec7368c95318e4083256ec0c6196b9ed2f.camel@cybertec.at>

* 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