Re: Add standard collation UNICODE - Mailing list pgsql-hackers

From Peter Eisentraut
Subject Re: Add standard collation UNICODE
Date
Msg-id e44e28ca-fce3-00c1-9d7c-753cac301b30@enterprisedb.com
Whole thread Raw
In response to Re: Add standard collation UNICODE  (Jeff Davis <pgsql@j-davis.com>)
Responses Re: Add standard collation UNICODE  (Jeff Davis <pgsql@j-davis.com>)
List pgsql-hackers
On 08.03.23 19:25, Jeff Davis wrote:
> Why is "unicode" only provided for the UTF-8 encoding? For "ucs_basic"
> that makes some sense, because the implementation only works in UTF-8.
> But here we are using ICU, and the "und" locale should work for any
> ICU-supported encoding. I suggest that we use collencoding=-1 for
> "unicode", and the docs can just add a note next to "ucs_basic" that it
> only works for UTF-8, because that's the weird case.

make sense

> For the docs, I suggest that you clarify that "ucs_basic" has the same
> behavior as the C locale does *in the UTF-8 encoding*. Not all users
> might pick up on the subtlety that the C locale has different behaviors
> in different encodings.

Ok, word-smithed a bit more.

How about this patch version?


Attachment

pgsql-hackers by date:

Previous
From: Daniel Gustafsson
Date:
Subject: Re: Raising the SCRAM iteration count
Next
From: Michael Paquier
Date:
Subject: Re: Allow tests to pass in OpenSSL FIPS mode