Re: ERROR: COPY quote must be a single ASCII character

From: Andrej Kastrin <andrej(dot)kastrin(at)siol(dot)net>
To: pgsql-general(at)postgresql(dot)org
Subject: Re: ERROR: COPY quote must be a single ASCII character
Date: 2008-02-08 15:06:28
Message-ID: 47AC6FF4.20009@siol.net
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

The answer is simple no. I know I can to some preprocessing on input
files using awk, sed etc. but don't want to change the structure of the
file.

Colin Wetherbee wrote:
> Andrej Kastrin wrote:
>> ||5354235||,||some text...|| ||1234567||,||some text...||
>> ||1234568||,||some text...||
>>
>> The sql statement I defined was:
>>
>> COPY testtable FROM 'test.txt' WITH DELIMITER AS ',' CSV QUOTE AS
>> '||';
>>
>> but the error:
>>
>> ERROR: COPY quote must be a single ASCII character
>
> I guess I'm stating the obvious here, but can you just change your '||'
> quotes to a single character within the file?
>
> Colin
>

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Bruce Momjian 2008-02-08 16:14:00 Re: hyperthreading and pqlib
Previous Message Colin Wetherbee 2008-02-08 14:42:53 Re: ERROR: COPY quote must be a single ASCII character