Re: import XML

Поиск
Список
Период
Сортировка
От David G. Johnston
Тема Re: import XML
Дата
Msg-id CAKFQuwaZu9w74XOPgsMYQ_yPwiXOYd=_bHXD2F5yGF0zxrLh8Q@mail.gmail.com
обсуждение исходный текст
Ответ на import XML  (PASCAL CROZET <pascal.crozet@qualis-consulting.com>)
Список pgsql-general
On Tue, Aug 18, 2020 at 8:27 AM PASCAL CROZET <pascal.crozet@qualis-consulting.com> wrote:
I want to import XML file into PG database table.
I've find functions to get the XML content of a cell after imported an XML file with the pg_get_file function.
But, I want to explode the XML content to colums. How can I do this ?

In short, you need to import the content as a document value first then use functions to explode that document.

You should find the documentation helpful.


Specifically, "xmltable"

Keep in mind that "context as a document value" can just be a literal.

David J.

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

Предыдущее
От: PASCAL CROZET
Дата:
Сообщение: import XML
Следующее
От: Peter Geoghegan
Дата:
Сообщение: Re: Index tuple deduplication limitations in pg13