Re: Multi-byte character case-folding

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: Multi-byte character case-folding
Дата
Msg-id 1469258.1594067631@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Multi-byte character case-folding  (Thom Brown <thom@linux.com>)
Ответы Re: Multi-byte character case-folding  (Alvaro Herrera <alvherre@2ndquadrant.com>)
Список pgsql-hackers
Thom Brown <thom@linux.com> writes:
> At the moment, only single-byte characters in identifiers are
> case-folded, and multi-byte characters are not.
> ...
> So my question is, do we yet have the infrastructure to make
> case-folding consistent across all character widths?

We still lack any built-in knowledge about this, and would have to rely
on libc, which means the results would likely be platform-dependent
and probably LC_CTYPE-dependent.

More generally, I'd be mighty hesitant to change this behavior after
it's stood for so many years.  I suspect more people would complain
that we broke their application than would be happy about it.

Having said that, we are already relying on towlower() in places,
and could do similarly here if we didn't care about the above issues.

            regards, tom lane



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

Предыдущее
От: Ajay Patel
Дата:
Сообщение: Question: PostgreSQL on Amazon linux EC2
Следующее
От: Flavio Henrique Araque Gurgel
Дата:
Сообщение: Re: Question: PostgreSQL on Amazon linux EC2