Re: [suggestion]support UNICODE host variables in ECPG

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: [suggestion]support UNICODE host variables in ECPG
Дата
Msg-id 29222.1545412056@sss.pgh.pa.us
обсуждение исходный текст
Ответ на RE: [suggestion]support UNICODE host variables in ECPG  ("Nagaura, Ryohei" <nagaura.ryohei@jp.fujitsu.com>)
Ответы RE: [suggestion]support UNICODE host variables in ECPG  ("Matsumura, Ryo" <matsumura.ryo@jp.fujitsu.com>)
RE: [suggestion]support UNICODE host variables in ECPG  ("Nagaura, Ryohei" <nagaura.ryohei@jp.fujitsu.com>)
Список pgsql-hackers
"Nagaura, Ryohei" <nagaura.ryohei@jp.fujitsu.com> writes:
> Tsunakawa-san
>> * What's the benefit of supporting UTF16 in host variables?

> 1) As byte per character is constant in UTF16 encoding, it can process strings more efficiently than other encodings.

I don't think I buy that argument; it falls down as soon as you consider
characters above U+FFFF.  I worry that by supporting UTF16, we'd basically
be encouraging users to write code that fails on such characters, which
doesn't seem like good project policy.

            regards, tom lane


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

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: Tid scan improvements
Следующее
От: "Bossart, Nathan"
Дата:
Сообщение: Re: A few new options for vacuumdb