So I am almost there, except my data is formated as follows:
"chunk1","chunk2","chunk3"
how would I tell COPY that my data is encapsulated in " and separated by , ? Furthermore, I did not find a manual on the COPY command. Anyone?
-----Original Message-----
From: Bruce Momjian [mailto:pgman@candle.pha.pa.us]
Sent: Monday, May 22, 2000 6:23 PM
To: Voitenko, Denis
Cc: 'pgsql-general@postgresql.org'
Subject: Re: [GENERAL] loading data from flat text file
COPY command.
[Charset iso-8859-1 unsupported, filtering to ASCII...]
> I am porting my database from MySQL to PostgreSQL 7.0 One of the first
> problems I ran into is the lack of data inload command. I would like to
> insert data from a 15 million record flat file into a table. How would I do
> that in PGSQL?
--
Bruce Momjian | http://www.op.net/~candle
pgman@candle.pha.pa.us | (610) 853-3000
+ If your life is a hard drive, | 830 Blythe Avenue
+ Christ can be your backup. | Drexel Hill, Pennsylvania 19026