public inbox for [email protected]
help / color / mirror / Atom feedFrom: Vik Fearing <[email protected]>
To: Peter Eisentraut <[email protected]>
To: pgsql-hackers <[email protected]>
Subject: Re: Add standard collation UNICODE
Date: Thu, 2 Mar 2023 01:05:34 +0100
Message-ID: <[email protected]> (raw)
In-Reply-To: <[email protected]>
References: <[email protected]>
On 3/1/23 11:09, Peter Eisentraut wrote:
> The SQL standard defines several standard collations. Most of them are
> only of legacy interest (IMO), but two are currently relevant: UNICODE
> and UCS_BASIC. UNICODE sorts by the default Unicode collation algorithm
> specifications and UCS_BASIC sorts by codepoint.
>
> When collation support was added to PostgreSQL, we added UCS_BASIC,
> since that could easily be mapped to the C locale. But there was no
> straightforward way to provide the UNICODE collation. (Recall that
> collation support came several releases before ICU support.)
>
> With ICU support, we can provide the UNICODE collation, since it's just
> the root locale. I suppose one hesitation was that ICU was not a
> standard feature, so this would create variations in the default catalog
> contents, or something like that. But I think now that we are drifting
> to make ICU more prominent, we can just add that anyway. I think being
> able to say
>
> COLLATE UNICODE
>
> instead of
>
> COLLATE "und-x-icu"
>
> or whatever it is, is pretty useful.
>
> So, attached is a small patch to add this.
I don't feel competent to review the patch (simple as it is), but +1 on
the principle.
--
Vik Fearing
view thread (6+ messages) latest in thread
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 using the --to and --cc options:
reply via email
To: [email protected]
Cc: [email protected], [email protected]
Subject: Re: Add standard collation UNICODE
In-Reply-To: <[email protected]>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by agora; see mirroring instructions
for how to clone and mirror all data and code used for this inbox