Re: copy command...

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: "Peter Tan" <kaihua(at)cs(dot)stanford(dot)edu>
Cc: pgsql-novice(at)postgresql(dot)org
Subject: Re: copy command...
Date: 2001-10-26 19:28:03
Message-ID: 27789.1004124483@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-novice

"Peter Tan" <kaihua(at)cs(dot)stanford(dot)edu> writes:
> When using the copy command to bulk load data, could I specify the string of
> "end of record", insted of using newline? If the answer is no, is there any
> alternative way?

Make a sed or awk script that changes newlines to backslash-newline,
except for the ones you want to treat as end of record.

regards, tom lane

In response to

Browse pgsql-novice by date

  From Date Subject
Next Message Brett W. McCoy 2001-10-26 20:04:41 Re: copy command...
Previous Message Peter Tan 2001-10-26 18:39:55 copy command...