From: | Jeff Davis <pgsql(at)j-davis(dot)com> |
---|---|
To: | Peter Eisentraut <peter(at)eisentraut(dot)org>, Daniel Verite <daniel(at)manitou-mail(dot)org> |
Cc: | Robert Haas <robertmhaas(at)gmail(dot)com>, Jeremy Schneider <schneider(at)ardentperf(dot)com>, pgsql-hackers(at)postgresql(dot)org |
Subject: | Re: Built-in CTYPE provider |
Date: | 2024-03-14 20:42:28 |
Message-ID: | 5a1ecc40539f36cac5b27a62739a45a49785ca54.camel@j-davis.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-hackers |
On Thu, 2024-03-14 at 15:38 +0100, Peter Eisentraut wrote:
> On 14.03.24 09:08, Jeff Davis wrote:
> > 0001 (the C.UTF-8 locale) is also close...
>
> If have tested this against the libc locale C.utf8 that was available
> on
> the OS, and the behavior is consistent.
That was the goal, in spirit.
But to clarify: it's not guaranteed that the built-in C.UTF-8 is always
the same as the libc UTF-8, because different implementations do
different things. For instance, I saw significant differences on MacOS.
> I wonder if we should version the builtin locales too. We might make
> a
> mistake and want to change something sometime?
I'm fine with that, see v25-0004 in the reply to your other mail.
The version only tracks sort order, and all of the builtin locales sort
based on memcmp(). But it's possible there are bugs in the
optimizations around memcmp() (e.g. abbreviated keys, or some future
optimization).
> Tiny comments:
>
> * src/bin/scripts/t/020_createdb.pl
>
> The two added tests should have different names that tells them apart
> (like the new initdb tests).
>
> * src/include/catalog/pg_collation.dat
Done in v25-0002 (in reply to your other mail).
Regards,
Jeff Davis
From | Date | Subject | |
---|---|---|---|
Next Message | Tom Lane | 2024-03-14 20:56:39 | Re: Recent 027_streaming_regress.pl hangs |
Previous Message | Jeff Davis | 2024-03-14 20:42:20 | Re: Built-in CTYPE provider |