Re: Allow backend to output result sets in XML - Mailing list pgsql-hackers

From Bort, Paul
Subject Re: Allow backend to output result sets in XML
Date
Msg-id 735D404BD9E7EB44B9CDFC27FC88809B01C4D3CF@mail2.tmwsystems.com
Whole thread Raw
In response to Allow backend to output result sets in XML  (Brian Moore <brianmooreca@yahoo.com>)
List pgsql-hackers
Please forgive me if this is silly, but if you wanted XML from the server,
couldn't you just write a PL/Perl untrusted function that takes a SELECT
statement as its parameter, and returns a single scalar containing the XML?
- The XML:: modules in Perl help with the XML formatting
- DBD::PgSPI could be handed the query as-is
- No change to BE/FE or wire protocols
- No impact on people who don't want it
- Probably works across versions with minimal fuss

Returning a simple XML structure with column names and rows should only take
a few lines. (I'd write an example if I knew XML:: better.)

I'll go back to lurking now. Thanks all for the great database! 



pgsql-hackers by date:

Previous
From: Tom Lane
Date:
Subject: Re: Slow query - index not used
Next
From: Tom Lane
Date:
Subject: Re: SET WITHOUT OIDS and VACUUM badness?