Re: Decomposing xml into table

From: Thomas Kellerer <shammat(at)gmx(dot)net>
To: pgsql-hackers(at)lists(dot)postgresql(dot)org
Subject: Re: Decomposing xml into table
Date: 2020-06-23 12:57:56
Message-ID: 042ca9e3-85b2-f6fd-bb99-335078635c14@gmx.net
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

Surafel Temesgen schrieb am 23.06.2020 um 13:59:
>> Did you try the xmltable function?
>
> yes i know it but i am proposing changing given xml data in to
> relational form and insert it to desired table at once
Well, xmltable() does change the XML data to a relational form and
the result can directly be used to insert into a table

insert into target_table (...)
select ...
from xmltable(...);

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Andreas Karlsson 2020-06-23 13:06:12 Re: Decomposing xml into table
Previous Message Peter Eisentraut 2020-06-23 12:57:23 some more pg_dump refactoring