Re: xmlconcat (was 9.0 release notes done)

Tom Lane <tgl@sss.pgh.pa.us>

From: Tom Lane <tgl@sss.pgh.pa.us>
To: Andrew Dunstan <andrew@dunslane.net>
Cc: Bruce Momjian <bruce@momjian.us>, Robert Haas <robertmhaas@gmail.com>, PostgreSQL-development <pgsql-hackers@postgresql.org>
Date: 2010-03-21T15:29:01Z
Lists: pgsql-hackers
Andrew Dunstan <andrew@dunslane.net> writes:
>> http://wiki.postgresql.org/wiki/PostgreSQL_9.0_Open_Items

> I have just been looking at the xmlconcat bug on that list. I can't 
> think of any better solution than parsing the resulting string to make 
> sure it is well-formed before we return,

That might be a reasonable thing to do as a safety check, but I can't
escape the feeling that what this fundamentally is is a data typing
error, traceable to the lack of differentiation between xml documents
and xml fragments.  Is there a way to attack it based on saying that the
inputs can't be documents, or stripping the document overhead if they are?

			regards, tom lane