Re: COPY error - Mailing list pgsql-cygwin

From Bruce Momjian
Subject Re: COPY error
Date
Msg-id 200310301826.h9UIQpN21237@candle.pha.pa.us
Whole thread Raw
In response to COPY error  ("Nupur Pande" <npande@vt.edu>)
List pgsql-cygwin
My guess is that the file is carriage-return/newline terminated.  Change
it to newline-only.  This is fixed in 7.4beta5.

---------------------------------------------------------------------------

Nupur Pande wrote:
> Hi,
> I'm trying to copy data from an excel file into a postgres table. I saved
> the file in .txt format (tab delimited) from Excel (running on Windows XP
> machine) and then ran the d2u utility on the .txt file to convert it into
> unix format on cygwin. The command I executed was COPY [table_name] from
> [full path of file name].
> I get the following error message:
> ERROR:  copy: line 1520, Extra data after last expected column
> ERROR:  copy: line 1520, Extra data after last expected column
>
> Could someone please tell me what I did wrong? I checked the excel table and
> I can't see any extra information on that line.
>
> Thanks a lot..
> Nupur
>
>
> ---------------------------(end of broadcast)---------------------------
> TIP 6: Have you searched our list archives?
>
>                http://archives.postgresql.org
>

--
  Bruce Momjian                        |  http://candle.pha.pa.us
  pgman@candle.pha.pa.us               |  (610) 359-1001
  +  If your life is a hard drive,     |  13 Roberts Road
  +  Christ can be your backup.        |  Newtown Square, Pennsylvania 19073

pgsql-cygwin by date:

Previous
From: "Nupur Pande"
Date:
Subject: COPY error
Next
From: "Nupur Pande"
Date:
Subject: Re: COPY error