Re: Two small questions re/ COPY CSV data into table

From: Andrew Gierth <andrew(at)tao11(dot)riddles(dot)org(dot)uk>
To: Matthias Apitz <guru(at)unixarea(dot)de>
Cc: Postgres general <pgsql-general(at)postgresql(dot)org>
Subject: Re: Two small questions re/ COPY CSV data into table
Date: 2019-06-04 15:41:47
Message-ID: 87sgsp8ikd.fsf@news-spur.riddles.org.uk
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

>>>>> "Matthias" == Matthias Apitz <guru(at)unixarea(dot)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)

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Tomasz Ostrowski 2019-06-04 15:54:24 Long running query - connection and keepalives enabled but query not canceled
Previous Message Matthias Apitz 2019-06-04 15:03:18 Re: Two small questions re/ COPY CSV data into table