Re: Decomposing xml into table - Mailing list pgsql-hackers

From Thomas Kellerer
Subject Re: Decomposing xml into table
Date
Msg-id 042ca9e3-85b2-f6fd-bb99-335078635c14@gmx.net
Whole thread Raw
In response to Re: Decomposing xml into table  (Surafel Temesgen <surafel3000@gmail.com>)
Responses Re: Decomposing xml into table  (Chapman Flack <chap@anastigmatix.net>)
List 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(...);




pgsql-hackers by date:

Previous
From: Peter Eisentraut
Date:
Subject: some more pg_dump refactoring
Next
From: Andreas Karlsson
Date:
Subject: Re: Decomposing xml into table