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

From Matsumura, Ryo
Subject RE: [suggestion]support UNICODE host variables in ECPG
Date
Msg-id 03040DFF97E6E54E88D3BFEE5F5480F737A80E2F@G01JPEXMBYT04
Whole thread Raw
In response to Re: [suggestion]support UNICODE host variables in ECPG  (Tom Lane <tgl@sss.pgh.pa.us>)
List pgsql-hackers
> * 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




pgsql-hackers by date:

Previous
From: "Iwata, Aya"
Date:
Subject: RE: libpq debug log
Next
From: Michael Paquier
Date:
Subject: Re: Tab completion for ALTER INDEX|TABLE ALTER COLUMN SET STATISTICS