pg.ddx.io  pgsql-general@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Karsten Hilbert <Karsten.Hilbert@gmx.net>
To: pgsql-general@lists.postgresql.org
Subject: Re: Encoding/collation question
Date: Wed, 18 Dec 2019 10:37:35 +0100
Message-ID: <20191218093735.GA472@hermes.hilbert.loc> (raw)
In-Reply-To: <25766.1576157753@sss.pgh.pa.us>
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>
	<20191212093713.GA3164@hermes.hilbert.loc>
	<25766.1576157753@sss.pgh.pa.us>

On Thu, Dec 12, 2019 at 08:35:53AM -0500, Tom Lane wrote:

> C collation basically devolves to strcmp/memcmp, which are as standard
> and well-defined as can be.  If you're happy with the way it sorts
> things then there's no reason not to use it.

So that's the collation to use when "technical" sorting is
required (say, when uniqueness does not depend on the notion
of culturally equivalent characters).

> It's actually all the *other* collations where you should worry about
> their behavior being a moving target :-(.

But then that is to be expected.

Thanks,
Karsten
--
GPG  40BE 5B0E C98E 1713 AFA6  5BC0 3BEA AC80 7D4F C89B





view thread (8+ messages)

Message-ID: <20191218093735.GA472@hermes.hilbert.loc>
Permalink:  ../20191218093735.GA472@hermes.hilbert.loc/
Also on:    postgresql.org/message-id/20191218093735.GA472@hermes.hilbert.loc

 · 

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: Karsten.Hilbert@gmx.net
  Subject: Re: Encoding/collation question
  In-Reply-To: <20191218093735.GA472@hermes.hilbert.loc>
  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> <20191212093713.GA3164@hermes.hilbert.loc> <25766.1576157753@sss.pgh.pa.us> <20191218093735.GA472@hermes.hilbert.loc>

* 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