Re: Error while importing CSV file - Mailing list pgsql-general

From Adrian Klaver
Subject Re: Error while importing CSV file
Date
Msg-id 201202070653.27895.adrian.klaver@gmail.com
Whole thread Raw
In response to Re: Error while importing CSV file  (Lockas <w_ward_w@hotmail.com>)
List pgsql-general
On Monday, February 06, 2012 9:43:35 pm Lockas wrote:
> OK .. my offending line number is 4533
> How can i remove it while copying ?

As others have said if it is just the one line remove it manually and then do
the COPY.

If there are many lines and if you will dealing with this on a recurring basis I
would suggest taking a look at pgloader:

http://pgloader.projects.postgresql.org/

There is a bit of learning curve, but it will do the clean up for you.

--
Adrian Klaver
adrian.klaver@gmail.com

pgsql-general by date:

Previous
From: Adrian Klaver
Date:
Subject: Re: default database selector
Next
From: Merlin Moncure
Date:
Subject: Re: How to write in Postgres