Re: Does UCS_BASIC have the right CTYPE?

Поиск
Список
Период
Сортировка
От Jeff Davis
Тема Re: Does UCS_BASIC have the right CTYPE?
Дата
Msg-id 6cb2b2d9112ed17250d55a757d2db9f2d1042f53.camel@j-davis.com
обсуждение исходный текст
Ответ на Re: Does UCS_BASIC have the right CTYPE?  (Tom Lane <tgl@sss.pgh.pa.us>)
Список pgsql-hackers
On Thu, 2023-10-26 at 17:32 -0400, Tom Lane wrote:
> For starters, C locale should certainly act different from others.

Agreed. ctype of "C" is 100% stable (as implemented in Postgres with
special ASCII-only semantics) and simple.

I'm looking for a way to offer a new middle ground between plain "C"
and buying into all of the problems with collation providers and
localization. We don't need to remove functionality to do so.

Providing Unicode ctype behavior doesn't look very hard. Collations
could select it either with a special name or by using the "builtin"
provider I proposed earlier. If the behavior does change with a new
Unicode version it would be easier to see and less likely to affect on-
disk structures than a collation change.

Regards,
    Jeff Davis




В списке pgsql-hackers по дате отправления:

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: Document parameter count limit
Следующее
От: Michael Paquier
Дата:
Сообщение: Re: Is this a problem in GenericXLogFinish()?