Re: Allow backend to output result sets in XML

Поиск
Список
Период
Сортировка
От Greg Stark
Тема Re: Allow backend to output result sets in XML
Дата
Msg-id 87fze9z7ki.fsf@stark.xeocode.com
обсуждение исходный текст
Ответ на Re: Allow backend to output result sets in XML  (Tom Lane <tgl@sss.pgh.pa.us>)
Ответы Re: Allow backend to output result sets in XML  ("Joshua D. Drake" <jd@commandprompt.com>)
Список pgsql-hackers
Tom Lane <tgl@sss.pgh.pa.us> writes:

> Brian Moore <brianmooreca@yahoo.com> writes:
> > i would like to begin work on the TODO item
> >   Allow backend to output result sets in XML
> 
> I am not sure why it's phrased that way --- surely the code to hack on
> is the client side, not the backend.  Otherwise you need a protocol
> revision to make this happen, which implies hacking *both* ends.

Presumably libpq would continue to use the binary protocol, but other clients
could bypass libpq and just stream ascii xml queries.

Personally I don't see any point in xml, but if there was a standard query
protocol then a client could send queries to any database that supported it
without using any libraries. That might be useful. Of course you could do that
without xml, but people seem to get more excited about complying with
standards when they invoke xml.

> psql already has some code to output results as HTML tables; I'd think
> adding functionality in that vicinity would be the way to go.

That could also be useful, mainly in that it could include the data from the
query, as well as some meta data. Allowing import tools for programs like
spreadsheets to do more intelligent things with the data than currently.

-- 
greg



В списке pgsql-hackers по дате отправления:

Предыдущее
От: Dennis Bjorklund
Дата:
Сообщение: Re: Slow query - index not used
Следующее
От: "Merlin Moncure"
Дата:
Сообщение: Re: Allow backend to output result sets in XML