Re: C locale versus en_US.UTF8. (Was: String comparision in PostgreSQL)

From: Jasen Betts <jasen(at)xnet(dot)co(dot)nz>
To: pgsql-general(at)postgresql(dot)org
Subject: Re: C locale versus en_US.UTF8. (Was: String comparision in PostgreSQL)
Date: 2012-09-02 07:25:16
Message-ID: k1v1ks$1ou$1@reversiblemaps.ath.cx
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

On 2012-08-29, Bruce Momjian <bruce(at)momjian(dot)us> wrote:

>> Name | Owner | Encoding | Collate | Ctype |
>> Access privileges
>> --------------+----------+-----------+-------------+-------------+-----------------------
>> clocale_utf8 | smarlowe | UTF8 | C | en_US.UTF-8 |
>>
>>
>> SQL_ASCII is the encoding equivalent of C locale, but it also allows
>> multi-byte characters.
>
> Yes, but what sort ordering do you get in that case?
>

C ordering is by unicode code point number.

c=# values ('a'),('Z'),('€'),('z'),('¢'),('ä'),('Ā') order by 1;
column1
---------
Z
a
z
¢
ä
Ā


--
⚂⚃ 100% natural

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Jasen Betts 2012-09-02 07:54:08 Re: GRANT SELECT
Previous Message Chris Travers 2012-09-02 07:06:26 Re: "Too far out of the mainstream"