Copy and xml files

From: "C G" <csgcsg39(at)hotmail(dot)com>
To: pgsql-general(at)postgresql(dot)org
Subject: Copy and xml files
Date: 2004-02-03 14:16:06
Message-ID: Law12-F102maiUYFjbh0001e1ee@hotmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Dear All,

I'm trying to insert an xml file into my database. I have a table with a
single text column. My intention is just to have the xml file take up one
row in the table.

I've tried the command

COPY t1 FROM '/tmp/file.xml';

but keep getting the error message

ERROR: extra data after last expected column
CONTEXT: COPY t1, line 32: " <cn type="integer"> 1 </cn>"

Thanks for any help

Colin

_________________________________________________________________
Sign-up for a FREE BT Broadband connection today!
http://www.msn.co.uk/specials/btbroadband

Responses

Browse pgsql-general by date

  From Date Subject
Next Message David Garamond 2004-02-03 14:52:00 large crontab database design
Previous Message Doug McNaught 2004-02-03 13:54:15 Re: BLOB problem