Re: Support tab completion for upper character inputs in psql

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: Support tab completion for upper character inputs in psql
Дата
Msg-id 1282887.1619151455@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: Support tab completion for upper character inputs in psql  (Kyotaro Horiguchi <horikyota.ntt@gmail.com>)
Ответы Re: Support tab completion for upper character inputs in psql
Список pgsql-hackers
Kyotaro Horiguchi <horikyota.ntt@gmail.com> writes:
> At Thu, 22 Apr 2021 23:17:19 -0400, Tom Lane <tgl@sss.pgh.pa.us> wrote in 
>> Doesn't seem like a good idea, because that locks us into an assumption
>> that the downcasing conversion doesn't change the string's physical
>> length.  There are a lot of counterexamples to that :-(.  I'm not sure

> Mmm. I didn't know of that.

The two examples I know of offhand are in German (eszett "ß" downcases to
"ss") and Turkish (dotted "Í" downcases to "i", likewise dotless "I"
downcases to "ı"; one of each of those pairs is an ASCII letter, the
other is not).  Depending on which encoding is in use, these
transformations *could* be the same number of bytes, but they could
equally well not be.  There are probably other examples.

            regards, tom lane



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

Предыдущее
От: Kyotaro Horiguchi
Дата:
Сообщение: Re: use pg_strncasecmp to replace strncmp when compare "pg_"
Следующее
От: Michael Paquier
Дата:
Сообщение: Re: Fix redundant comments in fmgr.c