From: Tom Lane <tgl@sss.pgh.pa.us>
To: Karsten Hilbert <Karsten.Hilbert@gmx.net>
Cc: pgsql-general@lists.postgresql.org
Subject: Re: Encoding/collation question
Date: Thu, 12 Dec 2019 08:35:53 -0500
Message-ID: <25766.1576157753@sss.pgh.pa.us> (raw)
In-Reply-To: <20191212093713.GA3164@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>
Karsten Hilbert <Karsten.Hilbert@gmx.net> writes:
> Question: is C collation expected to be future-proof /
> rock-solid /stable -- like UTF8 for encoding choice -- or
> could it end up like the SQL-ASCII encoding did: Yeah, we
> support it, it's been in use a long time, it should work,
> but, nah, one doesn't really want to choose it over UTF8 if
> at all possible, or at least know *exactly* what one is doing
> and BTW YMMV ?
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.
It's actually all the *other* collations where you should worry about
their behavior being a moving target :-(.
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, Karsten.Hilbert@gmx.net
Subject: Re: Encoding/collation question
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>
* 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