Re: xml-file as foreign table?

Поиск
Список
Период
Сортировка
От Johann Spies
Тема Re: xml-file as foreign table?
Дата
Msg-id CAGZ55DQmYButFr7XnJUEtdmas2jf3RMg=NJGamr5BRfF9p_5Sg@mail.gmail.com
обсуждение исходный текст
Ответ на Re: xml-file as foreign table?  (Arjen Nienhuis <a.g.nienhuis@gmail.com>)
Список pgsql-general
Thanks Arjen,



def q(v):
     return b'"' + v.replace(b'"', b'""') + b'"'

return b','.join(q(f) for f in fields) + b'\n'

In the end I also had some other problems with the XML (namespaces), so I used:

etree.tostring(element, method='c14n', exclusive=True)

This helped. My code is now doing it's job.

Regards
Johann

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

Предыдущее
От: "Sterpu Victor"
Дата:
Сообщение: Re: Slow query when the select list is big
Следующее
От: Robert Anderson
Дата:
Сообщение: Create index concurrently hanging with big table on pgsql 9.3.12