Thread: how to read /write xml data and insert into the postgres database

how to read /write xml data and insert into the postgres database

From
"Somasekhar Bangalore"
Date:
Hi All,


I have another question. Can I retrieve data in XML format. Also can I read XML data and insert into the database. If
Soplease send me an example. 

My previous  question. How to load data from a text file just like sqlloader in oracle.

Thanks in advance
-Som

Re: how to read /write xml data and insert into the postgres database

From
Jean-Max Reymond
Date:
On Mon, 27 Sep 2004 14:39:44 +0530, Somasekhar Bangalore
<sbangalore@zensutra.com> wrote:

>
> My previous  question. How to load data from a text file just like sqlloader in oracle.
>


COPY:
http://www.postgresql.org/docs/aw_pgsql_book/node210.html



--
Jean-Max Reymond
CKR Solutions
http://www.ckr-solutions.com

Re: how to read /write xml data and insert into the postgres

From
Tsirkin Evgeny
Date:
On Mon, 27 Sep 2004, Somasekhar Bangalore wrote:

> Hi All,
>
>
> I have another question. Can I retrieve data in XML format. Also can I read XML data and insert into the database. If
Soplease send me an example. 
>
I dont' think so but i think you can translate the xml to format that COPY
will understand
> My previous  question. How to load data from a text file just like sqlloader in oracle.
>

I am not sure what the sqlloader does ,but look into COPY command

> Thanks in advance
> -Som
>
> ---------------------------(end of broadcast)---------------------------
> TIP 9: the planner will ignore your desire to choose an index scan if your
>       joining column's datatypes do not match
>

--
Evgeny.