Enc: Res: COPY ERROR

From: paulo matadr <saddoness(at)yahoo(dot)com(dot)br>
To: laurenz(dot)albe(at)wien(dot)gv(dot)at
Cc: pgsql-general(at)postgresql(dot)org
Subject: Enc: Res: COPY ERROR
Date: 2010-03-31 14:04:38
Message-ID: 581683.96062.qm@web52503.mail.re2.yahoo.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Now attached.

----- Mensagem encaminhada ----
De: paulo matadr <saddoness(at)yahoo(dot)com(dot)br>
Para: Albe Laurenz <laurenz(dot)albe(at)wien(dot)gv(dot)at>
Cc: GENERAL <pgsql-general(at)postgresql(dot)org>
Enviadas: Quarta-feira, 31 de Março de 2010 11:03:01
Assunto: Res: [GENERAL] COPY ERROR

Txt file,
I belive that file not put \n on the end of line,this is possible?

follow example in attach.

________________________________
De: Albe Laurenz <laurenz(dot)albe(at)wien(dot)gv(dot)at>
Para: paulo matadr *EXTERN* <saddoness(at)yahoo(dot)com(dot)br>; GENERAL <pgsql-general(at)postgresql(dot)org>
Enviadas: Terça-feira, 30 de Março de 2010 4:03:51
Assunto: Re: [GENERAL] COPY ERROR

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

--
Sent via pgsql-general mailing list (pgsql-general(at)postgresql(dot)org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-general

________________________________
Veja quais são os assuntos do momento no Yahoo! + Buscados: Top 10 - Celebridades - Música - Esportes

____________________________________________________________________________________
Veja quais são os assuntos do momento no Yahoo! +Buscados
http://br.maisbuscados.yahoo.com

Attachment Content-Type Size
example.TXT text/plain 1.0 KB

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Tom Lane 2010-03-31 14:09:56 Re: Migration - not null default '0' -> not null default 0 - confused
Previous Message paulo matadr 2010-03-31 14:03:01 Res: COPY ERROR