>
> Try pltcl or plperl (or python I'd have thought) - they're much more
> suited to this sort of thing.
>
> PS - IMHO, formatting data into XML is a client-side task, middle-ware
> probably.
> --
Its not true. There is SQL/XML, but PostgreSQL don't support this. Where
you can use it: fast generating report (XML, XSLT, CSS), fast solution for
data exchange, ...
Regards
Pavel Stehule