Re: COPY ERROR

From: "Albe Laurenz" <laurenz(dot)albe(at)wien(dot)gv(dot)at>
To: "paulo matadr *EXTERN*" <saddoness(at)yahoo(dot)com(dot)br>, "GENERAL" <pgsql-general(at)postgresql(dot)org>
Subject: Re: COPY ERROR
Date: 2010-03-30 07:03:51
Message-ID: D960CB61B694CF459DCFB4B0128514C2049EE2CB@exadv11.host.magwien.gv.at
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

paulo matadr wrote:
> When I try to import big file base.txt( 700MB),I get this:
>
> xxxxx=# create table arquivo_serasa_marco( varchar(3000));
> xxxxx=# COPY arquivo_serasa_marco from
> '/usr/local/pgsql/data/base.txt';
> ERROR: literal newline found in data
> HINT: Use "\n" to represent newline.
> CONTEXT: COPY arquivo_serasa_marco, line 2: ""
>
> How can find solution for this?

The file does not seem to be in valid COPY format.

What is the format of the file?

Yours,
Laurenz Albe

In response to

  • COPY ERROR at 2010-03-29 20:20:36 from paulo matadr

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Andrus 2010-03-30 09:32:24 Re: How to implement word wrap
Previous Message Faheem Mitha 2010-03-30 04:50:38 Re: simultaneously reducing both memory usage and runtime for a query