Re: Two small questions re/ COPY CSV data into table - Mailing list pgsql-general

From Andrew Gierth
Subject Re: Two small questions re/ COPY CSV data into table
Date
Msg-id 87sgsp8ikd.fsf@news-spur.riddles.org.uk
Whole thread Raw
In response to Re: Two small questions re/ COPY CSV data into table  (Matthias Apitz <guru@unixarea.de>)
Responses Re: Two small questions re/ COPY CSV data into table
List pgsql-general
>>>>> "Matthias" == Matthias Apitz <guru@unixarea.de> writes:

 >> That sounds like the file is not actually a CSV - why do you think
 >> it is?

 Matthias> Well, it's not strictly CSV,

In other words it's not a CSV at all.

 Matthias> I do load this now with COPY in mode TEXT and modify the data
 Matthias> before with:

 Matthias>  sed 's/|/\v/g' < table-from-Sybase  | sed 's/\\\v/|/g' > table-for-copy

What on earth is this supposed to achieve?

-- 
Andrew (irc:RhodiumToad)



pgsql-general by date:

Previous
From: Matthias Apitz
Date:
Subject: Re: Two small questions re/ COPY CSV data into table
Next
From: Tomasz Ostrowski
Date:
Subject: Long running query - connection and keepalives enabled but query notcanceled