> * What's the benefit of supporting UTF16 in host variables? I think that the first benefit of suggestion is providing a way to treat UTF16 chars for application. Whether or not to support above U+FFFF (e.g. surrogate pair) may be a next discussion.
For that purpose, implementation for the suggestion may be easier than for supporting UTF16 at client_encoding. Uvarchar seems to be a label indicating that stored data is encoded by UTF16. It localizes the impacts within only labeled host variable. # At least, ecpglib is not good at treating 0x00 as a part of one character. Regards Ryo Matsumura