Re: [GENERAL] Copy and xml files

2004-02-03 Thread Chris Gamache
COPY works for whole tables, and can't append rows. You're going to have to escape your linebreaks and tabs to use COPY ... As I recall, you can specify your own custom column and row delimiters... You might consider creating some type of primary key for the table. A "serial" column would work fin

[GENERAL] Copy and xml files

2004-02-03 Thread C G
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