Re: [suggestion]support UNICODE host variables in ECPG - Mailing list pgsql-hackers

From Tom Lane
Subject Re: [suggestion]support UNICODE host variables in ECPG
Date
Msg-id 29222.1545412056@sss.pgh.pa.us
Whole thread Raw
In response to RE: [suggestion]support UNICODE host variables in ECPG  ("Nagaura, Ryohei" <nagaura.ryohei@jp.fujitsu.com>)
Responses 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>)
List 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 by date:

Previous
From: Tom Lane
Date:
Subject: Re: Tid scan improvements
Next
From: "Bossart, Nathan"
Date:
Subject: Re: A few new options for vacuumdb