Re: XML with invalid chars

From: Noah Misch <noah(at)leadboat(dot)com>
To: Andrew Dunstan <andrew(at)dunslane(dot)net>
Cc: PostgreSQL-development <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: XML with invalid chars
Date: 2011-05-11 23:00:26
Message-ID: 20110511230026.GA32283@tornado.gateway.2wire.net
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

On Wed, May 11, 2011 at 06:17:07PM -0400, Andrew Dunstan wrote:
> On 05/09/2011 11:25 PM, Noah Misch wrote:
>> SELECT xmlcomment(E'\ufffe');
>
> That's a bit harder. Do we want to extend these checks to cover
> surrogates and end of plane characters, which are the remaining
> forbidden chars? It certainly seems likely to be a somewhat slower test
> since I think we'd need to process the input strings a Unicode char at a
> time, but we do that in other places and it seems acceptable. What do
> people think?

My thinking was that we should only make this flag day for xml-type users if
we're going to fix it all the way.

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Andrew Dunstan 2011-05-11 23:39:22 Re: XML with invalid chars
Previous Message Andrew Dunstan 2011-05-11 22:52:41 Re: performance-test farm