Re: XML ouput for psql
От | Bruce Momjian |
---|---|
Тема | Re: XML ouput for psql |
Дата | |
Msg-id | 200303181434.h2IEYr813444@candle.pha.pa.us обсуждение исходный текст |
Ответ на | Re: XML ouput for psql (Tom Lane <tgl@sss.pgh.pa.us>) |
Список | pgsql-patches |
Tom Lane wrote: > Bruce Momjian <pgman@candle.pha.pa.us> writes: > > What would be interesting would be to enable libpq to dump XML, and have > > psql use that. > > ... or in the backend so libpq could use it, and thence psql. > > > Why put XML capability in the backend? > > So that non-libpq-based clients could use it. OK, I have two ideas here. First, can we create a function that takes a query result and returns one big XML string. I am not sure how to pump a result into a function. The other downside is that we would have to construct the entire result string in memory. The other idea I had was a GUC variable that returned all query results as one big XML string. That would prevent creating the entire string in backend memory, and might enable cursor fetches through the XML string. -- Bruce Momjian | http://candle.pha.pa.us pgman@candle.pha.pa.us | (610) 359-1001 + If your life is a hard drive, | 13 Roberts Road + Christ can be your backup. | Newtown Square, Pennsylvania 19073
В списке pgsql-patches по дате отправления: