Re: xmlconcat (was 9.0 release notes done) - Mailing list pgsql-hackers

From Peter Eisentraut
Subject Re: xmlconcat (was 9.0 release notes done)
Date
Msg-id 1269383707.17076.4.camel@vanquo.pezone.net
Whole thread Raw
In response to Re: xmlconcat (was 9.0 release notes done)  (Andrew Dunstan <andrew@dunslane.net>)
Responses Re: xmlconcat (was 9.0 release notes done)
List pgsql-hackers
On mån, 2010-03-22 at 19:38 -0400, Andrew Dunstan wrote:
> > But if we are not comfortable about being able to do that safely, I
> > would be OK with just raising an error if a concatenation is
> attempted
> > where one value contains a DTD.  The impact in practice should be
> low.
> >   
> 
> Right. Can you find a way to do that using the libxml API? I haven't 
> managed to, and I'm pretty sure I can construct XML that fails every 
> simple string search test I can think of, either with a false negative
> or a false positive.

The documentation on that is terse as usual.  In any case, you will need
to XML parse the input values, and so you might as well resort to
parsing the output value to see if it is well-formed, which should catch
this mistake and possibly others.



pgsql-hackers by date:

Previous
From: Tom Lane
Date:
Subject: Re: Deadlock possibility in _bt_check_unique?
Next
From: Bruce Momjian
Date:
Subject: Re: 9.0 release notes done