Pavel Stehule <pavel(dot)stehule(at)gmail(dot)com> writes:> result of xmlagg is not valid xml.
Really? Either that's a bug, or it's declared wrong.
regards, tom lane