On Wed, 2009-09-23 at 22:46 +0300, Marko Kreen wrote:
> I looked at your code for U& and saw that you allow standalone
> second half of the surrogate pair there, although you error
> out on first half.  Was that deliberate?

No.

> Perhaps pg_verifymbstr() should be made to check for such values,
> because even if we fix the escaping code, such data can still be
> inserted via plain utf8 or \x escapes?

Good idea.  This could also check for other invalid things like
byte-order marks in UTF-8.


-- 
Sent via pgsql-hackers mailing list (pgsql-hackers@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-hackers

Reply via email to