RE: loading data from flat text file

From: "Voitenko, Denis" <dvoitenko(at)qode(dot)com>
To: "'Bruce Momjian'" <pgman(at)candle(dot)pha(dot)pa(dot)us>, "Voitenko, Denis" <dvoitenko(at)qode(dot)com>
Cc: "'pgsql-general(at)postgresql(dot)org'" <pgsql-general(at)postgresql(dot)org>
Subject: RE: loading data from flat text file
Date: 2000-05-23 13:34:23
Message-ID: 0FF17853157CD31197E100902784B34B12A9B0@FILESERVER1
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

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(at)candle(dot)pha(dot)pa(dot)us]
Sent: Monday, May 22, 2000 6:23 PM
To: Voitenko, Denis
Cc: 'pgsql-general(at)postgresql(dot)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(at)candle(dot)pha(dot)pa(dot)us | (610) 853-3000
+ If your life is a hard drive, | 830 Blythe Avenue
+ Christ can be your backup. | Drexel Hill, Pennsylvania 19026

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Alex Pilosov 2000-05-23 13:42:02 Re: plperl extensions
Previous Message Louis-David Mitterrand 2000-05-23 13:25:59 missing fmgr.h