Re: Built-in case-insensitive collation pg_unicode_ci

2025-11-06 Thread Jeff Davis
On Thu, 2025-10-16 at 15:46 +0200, Peter Eisentraut wrote: > If it's a variant of PG_UNICODE_FAST, then it ought to be called > PG_UNICODE_FAST_CI or similar.  Otherwise, one would expect it to be > a > variant of PG_UNICODE (if that existed, but there is also UNICODE). > > But that name is also

Re: Built-in case-insensitive collation pg_unicode_ci

2025-10-18 Thread Peter Eisentraut
On 20.09.25 02:21, Jeff Davis wrote: New builtin case-insensitive collation PG_UNICODE_CI, where the ordering semantics are just: strcmp(CASEFOLD(arg1), CASEFOLD(arg2)) and the character semantics are the same as PG_UNICODE_FAST. If it's a variant of PG_UNICODE_FAST, then it ought to be c

Re: Built-in case-insensitive collation pg_unicode_ci

2025-09-24 Thread Laurenz Albe
On Fri, 2025-09-19 at 17:21 -0700, Jeff Davis wrote: > > Proposal > > > New builtin case-insensitive collation PG_UNICODE_CI, where the > ordering semantics are just: > >strcmp(CASEFOLD(arg1), CASEFOLD(arg2)) > > and the character semantics are the same as PG_UNICODE_FAST.

Re: Built-in case-insensitive collation pg_unicode_ci

2025-09-21 Thread Jeff Davis
On Fri, 2025-09-19 at 17:21 -0700, Jeff Davis wrote: > -- > Versioning > -- > > Unlike other built-in collations, the order does depend on the > version > of Unicode... > That means that indexes, including primary keys, can become > inconsistent after a major version upgrade... T

Built-in case-insensitive collation pg_unicode_ci

2025-09-19 Thread Jeff Davis
Proposal New builtin case-insensitive collation PG_UNICODE_CI, where the ordering semantics are just: strcmp(CASEFOLD(arg1), CASEFOLD(arg2)) and the character semantics are the same as PG_UNICODE_FAST. This does not perform the Unicode Collation algorithm (UCA), and it is